Spaces:
Running
Running
Update main.py
Browse files
main.py
CHANGED
@@ -17,7 +17,7 @@ app.add_middleware(
|
|
17 |
)
|
18 |
|
19 |
# ✅ Prediction endpoint
|
20 |
-
@app.
|
21 |
async def predict(question: str = Form(...), file: UploadFile = Form(...)):
|
22 |
try:
|
23 |
# Save uploaded file temporarily
|
|
|
17 |
)
|
18 |
|
19 |
# ✅ Prediction endpoint
|
20 |
+
@app.get("/")
|
21 |
async def predict(question: str = Form(...), file: UploadFile = Form(...)):
|
22 |
try:
|
23 |
# Save uploaded file temporarily
|