burtenshaw commited on
Commit
945d671
Β·
1 Parent(s): 8f5cc68

fix f-string error

Browse files
Files changed (1) hide show
  1. app.py +5 -5
app.py CHANGED
@@ -744,7 +744,7 @@ with gr.Blocks(
744
  }
745
  """,
746
  ) as app:
747
- gr.Markdown(f"""
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 refresh_data():
973
  return fetch_runs_for_ui(), get_system_status()
974
 
975
- def load_initial_data():
976
  return fetch_runs_for_ui(), get_system_status()
977
 
978
  refresh_btn.click(
979
- fn=refresh_data,
980
  outputs=[runs_table, stats],
981
  )
982
 
@@ -999,7 +999,7 @@ with gr.Blocks(
999
 
1000
  # Load initial data
1001
  app.load(
1002
- fn=load_initial_data,
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