Spaces:
Sleeping
Sleeping
Commit
·
a73952c
1
Parent(s):
b08871e
share gradio by default (unless gradio_share is set to false)
Browse files- Gradio_UI.py +2 -2
Gradio_UI.py
CHANGED
|
@@ -290,7 +290,7 @@ class GradioUI:
|
|
| 290 |
[stored_messages, text_input],
|
| 291 |
).then(self.interact_with_agent, [stored_messages, chatbot], [chatbot])
|
| 292 |
|
| 293 |
-
|
| 294 |
-
|
| 295 |
|
| 296 |
__all__ = ["stream_to_gradio", "GradioUI"]
|
|
|
|
| 290 |
[stored_messages, text_input],
|
| 291 |
).then(self.interact_with_agent, [stored_messages, chatbot], [chatbot])
|
| 292 |
|
| 293 |
+
share = not os.getenv("GRADIO_SHARE") == "false"
|
| 294 |
+
demo.launch(debug=True, share=share, **kwargs)
|
| 295 |
|
| 296 |
__all__ = ["stream_to_gradio", "GradioUI"]
|