muddokon commited on
Commit
864d92d
·
verified ·
1 Parent(s): ace4280

Update Gradio_UI.py

Browse files

Fixed examples structure

Files changed (1) hide show
  1. Gradio_UI.py +5 -1
Gradio_UI.py CHANGED
@@ -274,7 +274,7 @@ class GradioUI:
274
  resizeable=True,
275
  scale=1,
276
  watermark="Generated by PokéAgent AI",
277
- examples=[["Is it better to raise a Squirtle or a Magikarp in terms of the experience points?."],["What are the types for Drowzee?"],["Does Bulbasaur have better initial stats than Charmander?"]]
278
  )
279
  # If an upload folder is provided, enable the upload feature
280
  if self.file_upload_folder is not None:
@@ -294,5 +294,9 @@ class GradioUI:
294
 
295
  demo.launch(debug=True, share=True, **kwargs)
296
 
 
 
 
 
297
 
298
  __all__ = ["stream_to_gradio", "GradioUI"]
 
274
  resizeable=True,
275
  scale=1,
276
  watermark="Generated by PokéAgent AI",
277
+ examples=examples
278
  )
279
  # If an upload folder is provided, enable the upload feature
280
  if self.file_upload_folder is not None:
 
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"]