Spaces:
Running
on
Zero
Running
on
Zero
Update app.py
Browse files
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()
|