CCockrum commited on
Commit
cf284d1
·
verified ·
1 Parent(s): c65c64a

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +10 -5
app.py CHANGED
@@ -61,11 +61,16 @@ def respond(message, history):
61
  yield response
62
 
63
  with gr.Blocks(css=css) as demo:
64
- # Title Markdown block
65
- gr.Markdown("# 🇫🇷 French Tutor", elem_id="custom-title")
66
-
67
  with gr.Column(elem_id="chat-panel"):
68
- gr.ChatInterface(respond)
 
 
 
 
 
 
 
69
 
70
  if __name__ == "__main__":
71
- demo.launch()
 
 
61
  yield response
62
 
63
  with gr.Blocks(css=css) as demo:
 
 
 
64
  with gr.Column(elem_id="chat-panel"):
65
+ gr.ChatInterface(
66
+ respond,
67
+ additional_inputs=[
68
+ gr.Textbox(value="Adjust your settings.", label=""),
69
+ gr.Slider(minimum=1, maximum=2048, value=512, step=1, label="Response Length"),
70
+ gr.Slider(minimum=0.1, maximum=4.0, value=0.7, step=0.1, label="Creativity"),
71
+ gr.Slider(minimum=0.1, maximum=1.0, value=0.95, step=0.05, label="Dynamic Text")
72
+ ]
73
 
74
  if __name__ == "__main__":
75
+ demo.launch()
76
+