yetessam commited on
Commit
1f0ec51
·
verified ·
1 Parent(s): 1cde8a3

Update Gradio_UI.py

Browse files
Files changed (1) hide show
  1. Gradio_UI.py +7 -5
Gradio_UI.py CHANGED
@@ -49,6 +49,7 @@ agent_footer = """
49
  """
50
 
51
  def get_examples():
 
52
  example_root = os.path.join(os.path.dirname(__file__), "examples")
53
  # Get list of all example text paths
54
  example_files = [os.path.join(example_root, _) for _ in os.listdir(example_root) if _.endswith("txt")]
@@ -346,11 +347,12 @@ class GradioUI:
346
  [text_input, file_uploads_log],
347
  [stored_messages, text_input],
348
  ).then(self.interact_with_agent, [stored_messages, chatbot], [chatbot])
349
- gr.Examples(
350
- examples=get_examples(),
351
- inputs=text_input,
352
- label="Example Text"
353
- )
 
354
  gr.Markdown( agent_footer )
355
 
356
  demo.launch(debug=True, share=True, **kwargs)
 
49
  """
50
 
51
  def get_examples():
52
+
53
  example_root = os.path.join(os.path.dirname(__file__), "examples")
54
  # Get list of all example text paths
55
  example_files = [os.path.join(example_root, _) for _ in os.listdir(example_root) if _.endswith("txt")]
 
347
  [text_input, file_uploads_log],
348
  [stored_messages, text_input],
349
  ).then(self.interact_with_agent, [stored_messages, chatbot], [chatbot])
350
+
351
+ #gr.Examples(
352
+ # examples=get_examples(),
353
+ # inputs=text_input,
354
+ # label="Example Text"
355
+ #)
356
  gr.Markdown( agent_footer )
357
 
358
  demo.launch(debug=True, share=True, **kwargs)