gregH commited on
Commit
be68262
1 Parent(s): 74bafe1

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -4
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, examples=["hello", "hola", "merhaba"], title="Gradient Cuff Vicuna-7B-V1.5") as demo:
165
  with gr.Tab("english"):
166
- gr.Examples(["hello"],inputs=gr.Textbox())
167
  with gr.Tab("malaysia"):
168
- gr.Examples(["hola"],inputs=gr.Textbox())
169
  with gr.Tab("cantonese"):
170
- gr.Examples(["merhaba"],inputs=gr.Textbox())
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()