Spaces:
Sleeping
Sleeping
Updated app.py
Browse files
app.py
CHANGED
|
@@ -1,14 +1,14 @@
|
|
| 1 |
-
|
| 2 |
|
| 3 |
-
|
| 4 |
-
|
| 5 |
|
| 6 |
-
|
| 7 |
-
|
| 8 |
-
|
| 9 |
-
|
| 10 |
-
|
| 11 |
|
| 12 |
-
|
| 13 |
-
|
| 14 |
-
|
|
|
|
| 1 |
+
import gradio as gr
|
| 2 |
|
| 3 |
+
def echo_text(input_text):
|
| 4 |
+
return f'You entered: {input_text}'
|
| 5 |
|
| 6 |
+
interface = gr.Interface(
|
| 7 |
+
fn=echo_text,
|
| 8 |
+
inputs=gr.inputs.Textbox(lines=1, placeholder="Enter some text..."),
|
| 9 |
+
outputs="text"
|
| 10 |
+
)
|
| 11 |
|
| 12 |
+
# Launch the Gradio app
|
| 13 |
+
if __name__ == "__main__":
|
| 14 |
+
interface.launch()
|