Spaces:
Sleeping
Sleeping
App update
Browse files- Gradio_UI.py +2 -2
- app.py +1 -1
Gradio_UI.py
CHANGED
|
@@ -269,7 +269,7 @@ class GradioUI:
|
|
| 269 |
type="messages",
|
| 270 |
value=[],
|
| 271 |
avatar_images=(
|
| 272 |
-
|
| 273 |
"https://huggingface.co/datasets/agents-course/course-images/resolve/main/en/communication/Alfred.png",
|
| 274 |
),
|
| 275 |
resizable=True,
|
|
@@ -291,7 +291,7 @@ class GradioUI:
|
|
| 291 |
[stored_messages, text_input],
|
| 292 |
).then(self.interact_with_agent, [stored_messages, chatbot], [chatbot])
|
| 293 |
|
| 294 |
-
launch_kwargs = {"debug": True, "share": True}
|
| 295 |
launch_kwargs.update(kwargs)
|
| 296 |
demo.launch(**launch_kwargs)
|
| 297 |
|
|
|
|
| 269 |
type="messages",
|
| 270 |
value=[],
|
| 271 |
avatar_images=(
|
| 272 |
+
"https://huggingface.co/datasets/agents-course/course-images/resolve/main/en/communication/Alfred.png",
|
| 273 |
"https://huggingface.co/datasets/agents-course/course-images/resolve/main/en/communication/Alfred.png",
|
| 274 |
),
|
| 275 |
resizable=True,
|
|
|
|
| 291 |
[stored_messages, text_input],
|
| 292 |
).then(self.interact_with_agent, [stored_messages, chatbot], [chatbot])
|
| 293 |
|
| 294 |
+
launch_kwargs = {"debug": True, "share": True, "ssr_mode": False}
|
| 295 |
launch_kwargs.update(kwargs)
|
| 296 |
demo.launch(**launch_kwargs)
|
| 297 |
|
app.py
CHANGED
|
@@ -102,4 +102,4 @@ agent = CodeAgent(
|
|
| 102 |
)
|
| 103 |
|
| 104 |
|
| 105 |
-
GradioUI(agent).launch(
|
|
|
|
| 102 |
)
|
| 103 |
|
| 104 |
|
| 105 |
+
GradioUI(agent).launch(server_name="0.0.0.0", server_port=7860)
|