Spaces:
Runtime error
Runtime error
readded
Browse files
app.py
CHANGED
@@ -63,9 +63,9 @@ async def process_frame(file: UploadFile = File(...)):
|
|
63 |
return JSONResponse(content={"status": "error", "message": str(e)}, status_code=500)
|
64 |
|
65 |
# Run the app
|
66 |
-
|
67 |
-
|
68 |
-
|
69 |
|
70 |
# import gradio as gr
|
71 |
# from transformers import DetrImageProcessor, DetrForObjectDetection
|
|
|
63 |
return JSONResponse(content={"status": "error", "message": str(e)}, status_code=500)
|
64 |
|
65 |
# Run the app
|
66 |
+
if __name__ == "__main__":
|
67 |
+
import uvicorn
|
68 |
+
uvicorn.run(app, host="0.0.0.0", port=8000)
|
69 |
|
70 |
# import gradio as gr
|
71 |
# from transformers import DetrImageProcessor, DetrForObjectDetection
|