kadsai commited on
Commit
332ae01
·
verified ·
1 Parent(s): b2631f3

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -244,10 +244,10 @@ async def api_respond(data: RequestData):
244
  return {"history": response}
245
 
246
  def start_gradio():
247
- app.launch(server_name="0.0.0.0", server_port=7860, share=False)
248
 
249
  if __name__ == "__main__":
250
  # Lancer Gradio dans un thread à part
251
  threading.Thread(target=start_gradio, daemon=True).start()
252
  # Lancer FastAPI avec uvicorn
253
- uvicorn.run(app_fastapi, host="0.0.0.0", port=8000)
 
244
  return {"history": response}
245
 
246
  def start_gradio():
247
+ app.launch(server_name="0.0.0.0", server_port=7861, share=False)
248
 
249
  if __name__ == "__main__":
250
  # Lancer Gradio dans un thread à part
251
  threading.Thread(target=start_gradio, daemon=True).start()
252
  # Lancer FastAPI avec uvicorn
253
+ uvicorn.run(app_fastapi, host="0.0.0.0", port=7860)