bumie-e commited on
Commit
e2f8a3a
·
1 Parent(s): 613f240

Adding home

Browse files
Files changed (1) hide show
  1. app.py +4 -0
app.py CHANGED
@@ -27,6 +27,10 @@ def run_training(user_code: str):
27
  except Exception as e:
28
  print(f"--- Training Failed: {e} ---")
29
 
 
 
 
 
30
  @app.post("/train")
31
  def start_training(job: TrainingJob, background_tasks: BackgroundTasks):
32
 
 
27
  except Exception as e:
28
  print(f"--- Training Failed: {e} ---")
29
 
30
+ @app.get('/')
31
+ def read_root():
32
+ return {"message": "Welcome to the Training API!"}
33
+
34
  @app.post("/train")
35
  def start_training(job: TrainingJob, background_tasks: BackgroundTasks):
36