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

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -11
app.py CHANGED
@@ -61,7 +61,6 @@ agent = CodeAgent(
61
 
62
  #GradioUI(agent).launch()
63
 
64
- # Add a Markdown section for example usage
65
  examples = """
66
  ### Example Usage
67
  1. **Currency Rate**: Ask for the exchange rate of a currency pair.
@@ -73,13 +72,6 @@ examples = """
73
  - Example: "Get the time in Asia/Tokyo."
74
  """
75
 
76
- # Modify the Gradio UI to include the examples
77
- def launch_with_examples(agent):
78
- with gr.Blocks() as demo:
79
- gr.Markdown("# Currency Agent")
80
- gr.Markdown(examples)
81
- GradioUI(agent).render()
82
- demo.launch()
83
-
84
- # Launch the app
85
- launch_with_examples(agent)
 
61
 
62
  #GradioUI(agent).launch()
63
 
 
64
  examples = """
65
  ### Example Usage
66
  1. **Currency Rate**: Ask for the exchange rate of a currency pair.
 
72
  - Example: "Get the time in Asia/Tokyo."
73
  """
74
 
75
+ gr.Markdown("# Currency Agent")
76
+ gr.Markdown(examples)
77
+ GradioUI(agent).launch()