Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -22,15 +22,11 @@ import torch
|
|
| 22 |
|
| 23 |
import gradio as gr
|
| 24 |
|
| 25 |
-
#
|
| 26 |
-
|
|
|
|
| 27 |
|
| 28 |
|
| 29 |
-
|
| 30 |
|
| 31 |
-
|
| 32 |
-
label = gr.Label(text)
|
| 33 |
-
|
| 34 |
-
# Launch the Gradio app
|
| 35 |
-
interface = gr.Interface(fn =None ,inputs=None, outputs=label, title="String Display Example")
|
| 36 |
-
interface.launch()
|
|
|
|
| 22 |
|
| 23 |
import gradio as gr
|
| 24 |
|
| 25 |
+
# name of the function
|
| 26 |
+
def greet(name):
|
| 27 |
+
return "Hello " + name
|
| 28 |
|
| 29 |
|
| 30 |
+
demo = gr.Interface(fn=greet, inputs="text", outputs="text")
|
| 31 |
|
| 32 |
+
demo.launch()
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|