TheAarvee05 commited on
Commit
7ae6c8d
·
verified ·
1 Parent(s): 599b561

Upload server/app.py with huggingface_hub

Browse files
Files changed (1) hide show
  1. server/app.py +2 -2
server/app.py CHANGED
@@ -131,7 +131,7 @@ with gr.Blocks(title="Meta Ads RL Playground") as demo:
131
  state_btn.click(get_state_gradio, outputs=output_box)
132
 
133
 
134
- app = gr.mount_gradio_app(app, demo, path="/")
135
 
136
 
137
 
@@ -269,7 +269,7 @@ def delete_session(session_id: str) -> dict:
269
 
270
  def main() -> None:
271
  host = os.getenv("HOST", "0.0.0.0")
272
- port = int(os.getenv("PORT", "7860"))
273
  # Use the in-process app object so direct execution via python server/app.py works.
274
  uvicorn.run(app, host=host, port=port, reload=False)
275
 
 
131
  state_btn.click(get_state_gradio, outputs=output_box)
132
 
133
 
134
+ app = gr.mount_gradio_app(app, demo, path="/web")
135
 
136
 
137
 
 
269
 
270
  def main() -> None:
271
  host = os.getenv("HOST", "0.0.0.0")
272
+ port = int(os.getenv("PORT", "8000"))
273
  # Use the in-process app object so direct execution via python server/app.py works.
274
  uvicorn.run(app, host=host, port=port, reload=False)
275