Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -11,6 +11,10 @@ class Query(BaseModel):
|
|
| 11 |
queryResult: Optional[dict] = None
|
| 12 |
queryText: Optional[str] = None
|
| 13 |
|
|
|
|
|
|
|
|
|
|
|
|
|
| 14 |
@app.post("/webhook")
|
| 15 |
async def webhook(query: Query):
|
| 16 |
try:
|
|
|
|
| 11 |
queryResult: Optional[dict] = None
|
| 12 |
queryText: Optional[str] = None
|
| 13 |
|
| 14 |
+
@app.get("/")
|
| 15 |
+
async def root():
|
| 16 |
+
return {"message": "Welcome to the API"}
|
| 17 |
+
|
| 18 |
@app.post("/webhook")
|
| 19 |
async def webhook(query: Query):
|
| 20 |
try:
|