Spaces:
Sleeping
Sleeping
Update
Browse files
app.py
CHANGED
|
@@ -2,8 +2,11 @@
|
|
| 2 |
|
| 3 |
import gradio as gr
|
| 4 |
|
| 5 |
-
with gr.Blocks() as demo:
|
| 6 |
-
pass
|
| 7 |
|
| 8 |
-
|
| 9 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 2 |
|
| 3 |
import gradio as gr
|
| 4 |
|
|
|
|
|
|
|
| 5 |
|
| 6 |
+
def fn(message, history, text):
|
| 7 |
+
return message
|
| 8 |
+
|
| 9 |
+
|
| 10 |
+
with gr.Blocks() as demo:
|
| 11 |
+
gr.ChatInterface(fn=fn, additional_inputs=[gr.Textbox()])
|
| 12 |
+
demo.queue().launch()
|