Upload folder using huggingface_hub
Browse files
app.py
CHANGED
|
@@ -340,10 +340,5 @@ with gr.Blocks(title="code-chef ModelOps Trainer") as demo:
|
|
| 340 |
"""
|
| 341 |
)
|
| 342 |
|
| 343 |
-
# Mount Gradio to root and FastAPI
|
| 344 |
app = gr.mount_gradio_app(app, demo, path="/")
|
| 345 |
-
|
| 346 |
-
if __name__ == "__main__":
|
| 347 |
-
import uvicorn
|
| 348 |
-
|
| 349 |
-
uvicorn.run(app, host="0.0.0.0", port=7860)
|
|
|
|
| 340 |
"""
|
| 341 |
)
|
| 342 |
|
| 343 |
+
# Mount Gradio to root and FastAPI routes available at /api/*
|
| 344 |
app = gr.mount_gradio_app(app, demo, path="/")
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|