Update app.py
Browse files
app.py
CHANGED
|
@@ -212,6 +212,9 @@ def chain(input_text: str = Query(..., description="Enter your question")):
|
|
| 212 |
except Exception as e:
|
| 213 |
raise HTTPException(status_code=500, detail=str(e))
|
| 214 |
|
|
|
|
|
|
|
|
|
|
| 215 |
# if __name__ == "__main__":
|
| 216 |
|
| 217 |
# questions=[ "famous places to visit in india","what is the elligibility criteria to get green card in usa"]
|
|
|
|
| 212 |
except Exception as e:
|
| 213 |
raise HTTPException(status_code=500, detail=str(e))
|
| 214 |
|
| 215 |
+
@app.get("/")
|
| 216 |
+
def root():
|
| 217 |
+
return {"message": "API is running successfully"}
|
| 218 |
# if __name__ == "__main__":
|
| 219 |
|
| 220 |
# questions=[ "famous places to visit in india","what is the elligibility criteria to get green card in usa"]
|