davanstrien HF staff commited on
Commit
cb7fe33
·
1 Parent(s): bbb3627

Add root endpoint to return "Hello World!"

Browse files
Files changed (1) hide show
  1. main.py +5 -0
main.py CHANGED
@@ -235,6 +235,11 @@ async def predict_language(
235
  return predictions
236
 
237
 
 
 
 
 
 
238
  # app_title = "Dataset Language Detection"
239
  # app_description = "Detect the language of a dataset on the Hub"
240
  # inputs = [
 
235
  return predictions
236
 
237
 
238
+ @app.get("/")
239
+ def read_root():
240
+ return {"Hello": "World!"}
241
+
242
+
243
  # app_title = "Dataset Language Detection"
244
  # app_description = "Detect the language of a dataset on the Hub"
245
  # inputs = [