Patryk Studzinski commited on
Commit
5c2acfd
·
1 Parent(s): c53fb02

add get method

Browse files
Files changed (1) hide show
  1. app/main.py +3 -0
app/main.py CHANGED
@@ -33,6 +33,9 @@ async def startup_event():
33
  print(f"An unexpected error occurred during HuggingFace service initialization: {e}")
34
  raise
35
 
 
 
 
36
 
37
  @app.get("/health")
38
  async def health_check():
 
33
  print(f"An unexpected error occurred during HuggingFace service initialization: {e}")
34
  raise
35
 
36
+ @app.get("/")
37
+ async def read_root():
38
+ return {"message": "Welcome to the Car Description Enhancer API! Go to /docs for documentation."}
39
 
40
  @app.get("/health")
41
  async def health_check():