Spaces:
Runtime error
Runtime error
Commit
·
a0364bb
1
Parent(s):
6affcce
Update app.py
Browse files
app.py
CHANGED
@@ -53,16 +53,16 @@ def generate_script(host_name, listener_location, causes_climate_change, co2_lev
|
|
53 |
|
54 |
# Create a Gradio interface
|
55 |
iface = gr.Interface(fn=generate_script, inputs=[
|
56 |
-
gr.
|
57 |
-
gr.
|
58 |
-
gr.
|
59 |
-
gr.
|
60 |
-
gr.
|
61 |
-
gr.
|
62 |
-
gr.
|
63 |
-
gr.
|
64 |
-
gr.
|
65 |
-
gr.
|
66 |
], outputs=["text", "text"])
|
67 |
|
68 |
# Launch the interface
|
|
|
53 |
|
54 |
# Create a Gradio interface
|
55 |
iface = gr.Interface(fn=generate_script, inputs=[
|
56 |
+
gr.Textbox(label="Host Name"),
|
57 |
+
gr.Textbox(label="Listener Location"),
|
58 |
+
gr.Textbox(label="Causes Climate Change", optional=True),
|
59 |
+
gr.Number(label="CO2 Level", optional=True),
|
60 |
+
gr.Textbox(label="Effects Climate Change", optional=True),
|
61 |
+
gr.Number(label="Sea Level Rise", optional=True),
|
62 |
+
gr.Number(label="Warming Rate", optional=True),
|
63 |
+
gr.Textbox(label="Potential Solutions", optional=True),
|
64 |
+
gr.Textbox(label="Individual Role", optional=True),
|
65 |
+
gr.Textbox(label="Call To Action", optional=True)
|
66 |
], outputs=["text", "text"])
|
67 |
|
68 |
# Launch the interface
|