Spaces:
Sleeping
Sleeping
abril4416 commited on
Commit ·
68f763b
1
Parent(s): c745dff
Remove manual uvicorn startup for Hugging Face Spaces
Browse files
app.py
CHANGED
|
@@ -47,9 +47,3 @@ app = FastAPI()
|
|
| 47 |
app.mount("/linear-regression", StaticFiles(directory=str(linear_dir), html=True), name="linear-regression")
|
| 48 |
app.mount("/logistic-regression", StaticFiles(directory=str(logistic_dir), html=True), name="logistic-regression")
|
| 49 |
app = gr.mount_gradio_app(app, demo, path="/")
|
| 50 |
-
|
| 51 |
-
|
| 52 |
-
if __name__ == "__main__":
|
| 53 |
-
import uvicorn
|
| 54 |
-
|
| 55 |
-
uvicorn.run(app, host="0.0.0.0", port=7860)
|
|
|
|
| 47 |
app.mount("/linear-regression", StaticFiles(directory=str(linear_dir), html=True), name="linear-regression")
|
| 48 |
app.mount("/logistic-regression", StaticFiles(directory=str(logistic_dir), html=True), name="logistic-regression")
|
| 49 |
app = gr.mount_gradio_app(app, demo, path="/")
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|