Create app.py
Browse files
app.py
ADDED
@@ -0,0 +1,9 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
import gradio as gr
|
2 |
+
|
3 |
+
def text_streaming(input_text):
|
4 |
+
# Process the input text (you can replace this with your logic)
|
5 |
+
output_text = f"You entered: {input_text}"
|
6 |
+
return output_text
|
7 |
+
|
8 |
+
iface = gr.Interface(fn=text_streaming, inputs="text", outputs="text", live=True)
|
9 |
+
iface.launch()
|