Spaces:
Sleeping
Sleeping
Add root GET endpoint for testing FastAPI serving
Browse files- modal_whisper_app.py +4 -0
modal_whisper_app.py
CHANGED
|
@@ -49,6 +49,10 @@ app = modal.App(name="video-analysis-gradio-pipeline") # New app name, using App
|
|
| 49 |
|
| 50 |
fastapi_app = FastAPI() # Initialize FastAPI app
|
| 51 |
|
|
|
|
|
|
|
|
|
|
|
|
|
| 52 |
# Define allowed origins for CORS
|
| 53 |
origins = [
|
| 54 |
"https://agents-mcp-hackathon-video-mcp.hf.space", # Your Hugging Face Space
|
|
|
|
| 49 |
|
| 50 |
fastapi_app = FastAPI() # Initialize FastAPI app
|
| 51 |
|
| 52 |
+
@fastapi_app.get("/")
|
| 53 |
+
async def read_root():
|
| 54 |
+
return {"message": "FastAPI root is alive!"}
|
| 55 |
+
|
| 56 |
# Define allowed origins for CORS
|
| 57 |
origins = [
|
| 58 |
"https://agents-mcp-hackathon-video-mcp.hf.space", # Your Hugging Face Space
|