Spaces:
Runtime error
Runtime error
Reducing the code to just inputs and outputs to see if it compiles fine
Browse files
app.py
CHANGED
@@ -1,9 +1,12 @@
|
|
1 |
import gradio as gr
|
2 |
-
|
3 |
-
|
4 |
-
|
5 |
-
|
6 |
-
|
7 |
-
|
|
|
|
|
8 |
)
|
9 |
-
|
|
|
|
1 |
import gradio as gr
|
2 |
+
|
3 |
+
def greet(name, intensity):
|
4 |
+
return "Hello, " + name + "!" * intensity
|
5 |
+
|
6 |
+
demo = gr.Interface (
|
7 |
+
fn=greet,
|
8 |
+
inputs=[gr.Textbox(lines=7, label="Story URL")],
|
9 |
+
outputs=[gr.Textbox(lines=7, label="Story Summary")]
|
10 |
)
|
11 |
+
|
12 |
+
demo.launch()
|