jwphantom
commited on
Commit
•
61cc288
1
Parent(s):
99ebde5
fix bug on main.py
Browse files
main.py
CHANGED
@@ -29,6 +29,11 @@ app.add_middleware(
|
|
29 |
)
|
30 |
|
31 |
|
|
|
|
|
|
|
|
|
|
|
32 |
@app.post("/")
|
33 |
async def home(question: SchemaQuestion):
|
34 |
return await chat.home(question)
|
|
|
29 |
)
|
30 |
|
31 |
|
32 |
+
@app.get("/")
|
33 |
+
async def read_root():
|
34 |
+
return {"message": "Welcome to the API"}
|
35 |
+
|
36 |
+
|
37 |
@app.post("/")
|
38 |
async def home(question: SchemaQuestion):
|
39 |
return await chat.home(question)
|