riasadhuq10 commited on
Commit
1b94410
·
1 Parent(s): d302783

updating requirements

Browse files
Files changed (1) hide show
  1. app.py +3 -2
app.py CHANGED
@@ -2,7 +2,6 @@ import gradio as gr
2
  from outer_layer.app import app as fastapi_app
3
  from gradio.routes import mount_gradio_app
4
 
5
- # --- Dummy Gradio interface (required for HF Space) ---
6
  def api_stub(text=None, image_base64=None):
7
  return {
8
  "status": "ok",
@@ -15,5 +14,7 @@ gr_interface = gr.Interface(
15
  outputs="json",
16
  )
17
 
18
- # --- Mount FastAPI inside Gradio ---
19
  app = mount_gradio_app(fastapi_app, gr_interface, path="/")
 
 
 
 
2
  from outer_layer.app import app as fastapi_app
3
  from gradio.routes import mount_gradio_app
4
 
 
5
  def api_stub(text=None, image_base64=None):
6
  return {
7
  "status": "ok",
 
14
  outputs="json",
15
  )
16
 
 
17
  app = mount_gradio_app(fastapi_app, gr_interface, path="/")
18
+
19
+ if __name__ == "__main__":
20
+ gr_interface.launch(server_name="0.0.0.0", server_port=7860)