Spaces:
Running
on
Zero
Running
on
Zero
Update app.py
Browse files
app.py
CHANGED
@@ -161,11 +161,11 @@ def chat(message, history):
|
|
161 |
yield partial_text
|
162 |
|
163 |
#demo = gr.ChatInterface(fn=chat, examples=["hello", "hola", "merhaba"], title="Gradient Cuff Vicuna-7B-V1.5")
|
164 |
-
with gr.ChatInterface(fn=chat,
|
165 |
with gr.Tab("english"):
|
166 |
-
gr.Examples(["hello"],inputs=
|
167 |
with gr.Tab("malaysia"):
|
168 |
-
gr.Examples(["hola"],inputs=
|
169 |
with gr.Tab("cantonese"):
|
170 |
-
gr.Examples(["merhaba"],inputs=
|
171 |
demo.launch()
|
|
|
161 |
yield partial_text
|
162 |
|
163 |
#demo = gr.ChatInterface(fn=chat, examples=["hello", "hola", "merhaba"], title="Gradient Cuff Vicuna-7B-V1.5")
|
164 |
+
with gr.ChatInterface(fn=chat, title="Gradient Cuff Vicuna-7B-V1.5") as demo:
|
165 |
with gr.Tab("english"):
|
166 |
+
gr.Examples(["hello"],inputs=demo.inputs)
|
167 |
with gr.Tab("malaysia"):
|
168 |
+
gr.Examples(["hola"],inputs=demo.inputs)
|
169 |
with gr.Tab("cantonese"):
|
170 |
+
gr.Examples(["merhaba"],inputs=demo.inputs)
|
171 |
demo.launch()
|