Update main.py
Browse files
main.py
CHANGED
@@ -176,6 +176,6 @@ async def make_video(request: Request):
|
|
176 |
print(traceback.format_exc())
|
177 |
raise HTTPException(status_code=500, detail=f"An unexpected error occurred: {str(e)}")
|
178 |
|
179 |
-
|
180 |
-
|
181 |
-
|
|
|
176 |
print(traceback.format_exc())
|
177 |
raise HTTPException(status_code=500, detail=f"An unexpected error occurred: {str(e)}")
|
178 |
|
179 |
+
if __name__ == "__main__":
|
180 |
+
import uvicorn
|
181 |
+
uvicorn.run(app, host="0.0.0.0", port=7860)
|