Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -34,6 +34,11 @@ logger = logging.getLogger(__name__)
|
|
| 34 |
# FastAPI application
|
| 35 |
app = FastAPI()
|
| 36 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 37 |
# Request schema
|
| 38 |
class InferenceRequest(BaseModel):
|
| 39 |
query: str
|
|
|
|
| 34 |
# FastAPI application
|
| 35 |
app = FastAPI()
|
| 36 |
|
| 37 |
+
# Root endpoint for health check
|
| 38 |
+
@app.get("/")
|
| 39 |
+
def read_root():
|
| 40 |
+
return {"message": "API is up and running!"}
|
| 41 |
+
|
| 42 |
# Request schema
|
| 43 |
class InferenceRequest(BaseModel):
|
| 44 |
query: str
|