djstrong commited on
Commit
f42db39
1 Parent(s): 358ae35

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -2
app.py CHANGED
@@ -186,7 +186,7 @@ def vote(chatbot, data: gr.LikeData):
186
 
187
  # Create Gradio interface
188
 
189
- with gr.Blocks() as demo:
190
  chatbot = gr.Chatbot(label="Chatbot", likeable=True, render=False)
191
  chatbot.like(vote, [chatbot], None)
192
  gr.ChatInterface(
@@ -209,7 +209,6 @@ with gr.Blocks() as demo:
209
  gr.Slider(0, 1, 0.95, label="Top P sampling", render=False),
210
  ],
211
  theme=gr.themes.Soft(primary_hue=COLOR),
212
- js=on_load,
213
  )
214
 
215
  demo.queue(max_size=20).launch()
 
186
 
187
  # Create Gradio interface
188
 
189
+ with gr.Blocks(js=on_load) as demo:
190
  chatbot = gr.Chatbot(label="Chatbot", likeable=True, render=False)
191
  chatbot.like(vote, [chatbot], None)
192
  gr.ChatInterface(
 
209
  gr.Slider(0, 1, 0.95, label="Top P sampling", render=False),
210
  ],
211
  theme=gr.themes.Soft(primary_hue=COLOR),
 
212
  )
213
 
214
  demo.queue(max_size=20).launch()