Spaces:
Sleeping
Sleeping
Update main.py
Browse files
main.py
CHANGED
@@ -295,6 +295,13 @@ async def merge_vectorstore(file: UploadFile = File(...)):
|
|
295 |
os.remove(tmp_filename)
|
296 |
return result
|
297 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
298 |
if __name__ == "__main__":
|
299 |
import uvicorn
|
300 |
uvicorn.run(app, host="0.0.0.0", port=8000)
|
|
|
295 |
os.remove(tmp_filename)
|
296 |
return result
|
297 |
|
298 |
+
@app.get("/")
|
299 |
+
async def root(request: Request):
|
300 |
+
return {
|
301 |
+
"message": "API is up and running!"
|
302 |
+
}
|
303 |
+
|
304 |
+
|
305 |
if __name__ == "__main__":
|
306 |
import uvicorn
|
307 |
uvicorn.run(app, host="0.0.0.0", port=8000)
|