Update Gradio_UI.py
Browse filesFixed Examples variable
- Gradio_UI.py +5 -5
Gradio_UI.py
CHANGED
|
@@ -261,6 +261,11 @@ class GradioUI:
|
|
| 261 |
def launch(self, **kwargs):
|
| 262 |
import gradio as gr
|
| 263 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 264 |
with gr.Blocks(fill_height=True) as demo:
|
| 265 |
stored_messages = gr.State([])
|
| 266 |
file_uploads_log = gr.State([])
|
|
@@ -294,9 +299,4 @@ class GradioUI:
|
|
| 294 |
|
| 295 |
demo.launch(debug=True, share=True, **kwargs)
|
| 296 |
|
| 297 |
-
examples=[[{"text": "Is it better to raise a Squirtle or a Magikarp in terms of the experience points?"}],
|
| 298 |
-
[{"text": "What are the types for Drowzee?"}],
|
| 299 |
-
[{"text": "Compare Bulbasaur and Charmander stats"}],
|
| 300 |
-
]
|
| 301 |
-
|
| 302 |
__all__ = ["stream_to_gradio", "GradioUI"]
|
|
|
|
| 261 |
def launch(self, **kwargs):
|
| 262 |
import gradio as gr
|
| 263 |
|
| 264 |
+
examples=[[{"text": "Is it better to raise a Squirtle or a Magikarp in terms of the experience points?"}],
|
| 265 |
+
[{"text": "What are the types for Drowzee?"}],
|
| 266 |
+
[{"text": "Compare Bulbasaur and Charmander stats"}],
|
| 267 |
+
]
|
| 268 |
+
|
| 269 |
with gr.Blocks(fill_height=True) as demo:
|
| 270 |
stored_messages = gr.State([])
|
| 271 |
file_uploads_log = gr.State([])
|
|
|
|
| 299 |
|
| 300 |
demo.launch(debug=True, share=True, **kwargs)
|
| 301 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 302 |
__all__ = ["stream_to_gradio", "GradioUI"]
|