Spaces:
Runtime error
Runtime error
SoSa123456
commited on
Commit
•
899c09c
1
Parent(s):
ca1e304
Update app.py
Browse files
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 |
-
|
39 |
-
|
40 |
-
|
41 |
-
|
42 |
-
|
43 |
-
|
44 |
-
|
45 |
-
|
46 |
-
|
47 |
-
|
48 |
-
|
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()
|