SoSa123456 commited on
Commit
899c09c
1 Parent(s): ca1e304

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +11 -11
app.py CHANGED
@@ -35,17 +35,17 @@ def generate_script(host_name="John", listener_location="City", causes_climate_c
35
 
36
  # Create a Gradio interface with default values
37
  iface = gr.Interface(fn=generate_script,
38
- inputs=[gr.Textbox(label="Host Name", default="John"),
39
- gr.Textbox(label="Listener Location", default="City"),
40
- gr.Textbox(label="Causes Climate Change", default="human activities"),
41
- gr.Number(label="CO2 Level", default=400),
42
- gr.Textbox(label="Effects Climate Change", default="rising temperatures"),
43
- gr.Number(label="Sea Level Rise", default=0.1),
44
- gr.Number(label="Warming Rate", default=0.2),
45
- gr.Textbox(label="Potential Solutions", default="renewable energy"),
46
- gr.Textbox(label="Individual Role", default="reduce carbon footprint"),
47
- gr.Textbox(label="Call To Action", default="act now")],
48
- outputs="text")
49
 
50
  # Launch the interface
51
  iface.launch()
 
35
 
36
  # Create a Gradio interface with default values
37
  iface = gr.Interface(fn=generate_script,
38
+ inputs=[gr.Textbox(label="Host Name", value="John"),
39
+ gr.Textbox(label="Listener Location", value="City"),
40
+ gr.Textbox(label="Causes Climate Change", value="human activities"),
41
+ gr.Number(label="CO2 Level", default=400),
42
+ gr.Textbox(label="Effects Climate Change", value="rising temperatures"),
43
+ gr.Number(label="Sea Level Rise", default=0.1),
44
+ gr.Number(label="Warming Rate", default=0.2),
45
+ gr.Textbox(label="Potential Solutions", value="renewable energy"),
46
+ gr.Textbox(label="Individual Role", value="reduce carbon footprint"),
47
+ gr.Textbox(label="Call To Action", value="act now")],
48
+ outputs="text")
49
 
50
  # Launch the interface
51
  iface.launch()