Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -4,8 +4,15 @@
|
|
4 |
|
5 |
import gradio as gr
|
6 |
|
7 |
-
def
|
8 |
-
|
9 |
|
10 |
-
demo = gr.ChatInterface(
|
11 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
4 |
|
5 |
import gradio as gr
|
6 |
|
7 |
+
def echo_with_inputs(message, history, additional_input):
|
8 |
+
return f"You said: {message}\nAdditional input: {additional_input}"
|
9 |
|
10 |
+
demo = gr.ChatInterface(
|
11 |
+
fn=echo_with_inputs,
|
12 |
+
examples=["hello", "hola", "merhaba"],
|
13 |
+
title="Echo Bot with Inputs",
|
14 |
+
inputs=["textbox", "textbox"],
|
15 |
+
labels=["Message", "Additional Input"],
|
16 |
+
)
|
17 |
+
|
18 |
+
demo.launch()
|