Spaces:
Sleeping
Sleeping
Commit ·
ebda66b
1
Parent(s): dd8327e
revert to prev version
Browse files200 unmodified lines201202203204205206207208209210211212213214215200 unmodified lines"http://localhost:8000", # local python3 -m http.server test]app = FastAPI()app.add_middleware(CORSMiddleware,allow_origins=ALLOWED_ORIGINS,allow_credentials=True, # REQUIRED — the gradio client sends credentialsallow_methods=["*"],allow_headers=["*"],)app = gr.mount_gradio_app(app, demo, path="/")if __name__ == "__main__":uvicorn.run(app, host="0.0.0.0", port=7860) # 7860 = the HF Spaces port200 unmodified lines201202203204205200 unmodified lines"http://localhost:8000", # local python3 -m http.server test]if __name__ == "__main__":demo.launch()
app.py+1-11