Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -1,4 +1,9 @@
|
|
|
|
1 |
import gradio as gr
|
2 |
|
|
|
|
|
3 |
|
4 |
-
gr.Interface.
|
|
|
|
|
|
1 |
+
#display a text
|
2 |
import gradio as gr
|
3 |
|
4 |
+
def text_display(text):
|
5 |
+
return text
|
6 |
|
7 |
+
demo = gr.Interface(text_display, gr.Text(), "text")
|
8 |
+
#alternatively use gr.TextBox()
|
9 |
+
demo.launch()
|