Spaces:
Runtime error
Runtime error
burtenshaw
commited on
Commit
Β·
945d671
1
Parent(s):
8f5cc68
fix f-string error
Browse files
app.py
CHANGED
|
@@ -744,7 +744,7 @@ with gr.Blocks(
|
|
| 744 |
}
|
| 745 |
""",
|
| 746 |
) as app:
|
| 747 |
-
gr.Markdown(
|
| 748 |
# π AutoTrain Gradio MCP Server
|
| 749 |
|
| 750 |
Get your AI models to train your AI models!
|
|
@@ -969,14 +969,14 @@ with gr.Blocks(
|
|
| 969 |
)
|
| 970 |
|
| 971 |
# Event handlers with proper function names (not lambda)
|
| 972 |
-
def
|
| 973 |
return fetch_runs_for_ui(), get_system_status()
|
| 974 |
|
| 975 |
-
def
|
| 976 |
return fetch_runs_for_ui(), get_system_status()
|
| 977 |
|
| 978 |
refresh_btn.click(
|
| 979 |
-
fn=
|
| 980 |
outputs=[runs_table, stats],
|
| 981 |
)
|
| 982 |
|
|
@@ -999,7 +999,7 @@ with gr.Blocks(
|
|
| 999 |
|
| 1000 |
# Load initial data
|
| 1001 |
app.load(
|
| 1002 |
-
fn=
|
| 1003 |
outputs=[runs_table, stats],
|
| 1004 |
)
|
| 1005 |
|
|
|
|
| 744 |
}
|
| 745 |
""",
|
| 746 |
) as app:
|
| 747 |
+
gr.Markdown("""
|
| 748 |
# π AutoTrain Gradio MCP Server
|
| 749 |
|
| 750 |
Get your AI models to train your AI models!
|
|
|
|
| 969 |
)
|
| 970 |
|
| 971 |
# Event handlers with proper function names (not lambda)
|
| 972 |
+
def refresh_ui_data():
|
| 973 |
return fetch_runs_for_ui(), get_system_status()
|
| 974 |
|
| 975 |
+
def load_initial_ui_data():
|
| 976 |
return fetch_runs_for_ui(), get_system_status()
|
| 977 |
|
| 978 |
refresh_btn.click(
|
| 979 |
+
fn=refresh_ui_data,
|
| 980 |
outputs=[runs_table, stats],
|
| 981 |
)
|
| 982 |
|
|
|
|
| 999 |
|
| 1000 |
# Load initial data
|
| 1001 |
app.load(
|
| 1002 |
+
fn=load_initial_ui_data,
|
| 1003 |
outputs=[runs_table, stats],
|
| 1004 |
)
|
| 1005 |
|