umarigan commited on
Commit
45af8bd
·
verified ·
1 Parent(s): 9f9249d

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +11 -3
app.py CHANGED
@@ -72,6 +72,14 @@ examples = """
72
  - Example: "Get the time in Asia/Tokyo."
73
  """
74
 
75
- gr.Markdown("# Currency Agent")
76
- gr.Markdown(examples)
77
- GradioUI(agent).launch()
 
 
 
 
 
 
 
 
 
72
  - Example: "Get the time in Asia/Tokyo."
73
  """
74
 
75
+ # Modify the Gradio UI to include the examples
76
+ def launch_with_examples(agent):
77
+ with gr.Blocks() as demo:
78
+ gr.Markdown("# Currency and Time Agent")
79
+ gr.Markdown(examples)
80
+ GradioUI(agent).render()
81
+ demo.launch()
82
+
83
+ # Launch the app
84
+ launch_with_examples(agent)
85
+ #GradioUI(agent).launch()