Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -73,8 +73,8 @@ if __name__ == "__main__":
|
|
73 |
import threading
|
74 |
|
75 |
# Lancer FastAPI dans un thread séparé
|
76 |
-
api_thread = threading.Thread(target=uvicorn.run, args=(app,), kwargs={"host": "0.0.0.0", "port":
|
77 |
api_thread.start()
|
78 |
|
79 |
# Lancer Gradio sur le port 7860
|
80 |
-
iface.launch(server_port=
|
|
|
73 |
import threading
|
74 |
|
75 |
# Lancer FastAPI dans un thread séparé
|
76 |
+
api_thread = threading.Thread(target=uvicorn.run, args=(app,), kwargs={"host": "0.0.0.0", "port": 7860})
|
77 |
api_thread.start()
|
78 |
|
79 |
# Lancer Gradio sur le port 7860
|
80 |
+
iface.launch(server_port=7861, share=True)
|