Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -50,7 +50,7 @@ async def chat_endpoint(req: ChatRequest):
|
|
| 50 |
|
| 51 |
if __name__ == "__main__":
|
| 52 |
def launch_gradio():
|
| 53 |
-
|
| 54 |
threading.Thread(target=launch_gradio).start()
|
| 55 |
uvicorn.run("app:app", host="0.0.0.0", port=8000)
|
| 56 |
|
|
@@ -61,7 +61,7 @@ EXCELIS_USER = os.getenv("EXCELIS_USER")
|
|
| 61 |
EXCELIS_MDP = os.getenv("EXCELIS_MDP")
|
| 62 |
initial_history = [{"role": "assistant", "content": "👋 Bonjour, je suis AxelIA, votre assistant. Que puis-je faire pour vous aujourd’hui ?"}]
|
| 63 |
|
| 64 |
-
with gr.Blocks(theme=gr.themes.Soft(), css=".gradio-container {background-color: #b8c2d3;}") as
|
| 65 |
|
| 66 |
with gr.Column(visible=True, elem_id="login-block") as login_block:
|
| 67 |
gr.Markdown("""
|
|
|
|
| 50 |
|
| 51 |
if __name__ == "__main__":
|
| 52 |
def launch_gradio():
|
| 53 |
+
gradio_app.launch(server_name="0.0.0.0", server_port=7860, share=False)
|
| 54 |
threading.Thread(target=launch_gradio).start()
|
| 55 |
uvicorn.run("app:app", host="0.0.0.0", port=8000)
|
| 56 |
|
|
|
|
| 61 |
EXCELIS_MDP = os.getenv("EXCELIS_MDP")
|
| 62 |
initial_history = [{"role": "assistant", "content": "👋 Bonjour, je suis AxelIA, votre assistant. Que puis-je faire pour vous aujourd’hui ?"}]
|
| 63 |
|
| 64 |
+
with gr.Blocks(theme=gr.themes.Soft(), css=".gradio-container {background-color: #b8c2d3;}") as gradio_app:
|
| 65 |
|
| 66 |
with gr.Column(visible=True, elem_id="login-block") as login_block:
|
| 67 |
gr.Markdown("""
|