Upload gradioo.py
Browse files- gradioo.py +12 -0
gradioo.py
ADDED
@@ -0,0 +1,12 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
import gradio as gr
|
2 |
+
|
3 |
+
def chatbot(input_text):
|
4 |
+
return "DEMO14gh"
|
5 |
+
|
6 |
+
iface = gr.Interface(
|
7 |
+
fn=chatbot,
|
8 |
+
inputs=gr.inputs.Textbox(),
|
9 |
+
outputs=gr.outputs.Textbox()
|
10 |
+
)
|
11 |
+
|
12 |
+
iface.launch()
|