alextorelli commited on
Commit
bf8b9d6
·
verified ·
1 Parent(s): 5012093

Upload folder using huggingface_hub

Browse files
Files changed (1) hide show
  1. app.py +1 -6
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 to /api
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="/")