JDhruv14 commited on
Commit
be1224a
·
verified ·
1 Parent(s): b81b02b

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +9 -7
app.py CHANGED
@@ -70,13 +70,15 @@ with gr.Blocks() as demo:
70
  min_new = gr.Slider(0, 512, value=160, step=8, label="min_new_tokens")
71
 
72
  chat = gr.ChatInterface(
73
- fn=lambda m, h: chat_fn(m, h, system_box.value, temperature.value, top_p.value, max_new.value, min_new.value),
74
- title=None,
75
- additional_inputs=[system_box, temperature, top_p, max_new, min_new],
76
- retry_btn="Regenerate",
77
- undo_btn="Undo Last",
78
- clear_btn="Clear",
79
- queue=True, # queue is recommended (and required for ZeroGPU concurrency)
 
 
80
  )
81
 
82
  if __name__ == "__main__":
 
70
  min_new = gr.Slider(0, 512, value=160, step=8, label="min_new_tokens")
71
 
72
  chat = gr.ChatInterface(
73
+ fn=gradio_fn,
74
+ examples=[
75
+ "Hello!",
76
+ "How can I overcome fear of failure?",
77
+ "How do I forgive someone who hurt me deeply?",
78
+ "What can I do to stop overthinking?"
79
+ ],
80
+ chatbot=gr.Chatbot(elem_classes="chatbot"),
81
+ theme="compact",
82
  )
83
 
84
  if __name__ == "__main__":