Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -10,6 +10,10 @@ app = FastAPI()
|
|
| 10 |
async def root():
|
| 11 |
return {"message": "Sentiment Analysis API is running."}
|
| 12 |
|
|
|
|
|
|
|
|
|
|
|
|
|
| 13 |
@app.post("/chat", response_model=str)
|
| 14 |
async def chat_endpoint(message: str = Form(...)):
|
| 15 |
if "model" not in classification_modeL_cache:
|
|
|
|
| 10 |
async def root():
|
| 11 |
return {"message": "Sentiment Analysis API is running."}
|
| 12 |
|
| 13 |
+
@app.get("/logo")
|
| 14 |
+
async def load_log():
|
| 15 |
+
return {"message": "hello"}
|
| 16 |
+
|
| 17 |
@app.post("/chat", response_model=str)
|
| 18 |
async def chat_endpoint(message: str = Form(...)):
|
| 19 |
if "model" not in classification_modeL_cache:
|