Update app.py
Browse files
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=
|
| 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=
|
|
|
|
| 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)
|