ehristoforu ysharma HF staff commited on
Commit
1afe06d
1 Parent(s): c1ba757

adding examples and concurency (#3)

Browse files

- adding examples and concurency (cb92c29b44baf3995784b3c9e90862d1a39c5289)


Co-authored-by: yuvraj sharma <[email protected]>

Files changed (1) hide show
  1. app.py +10 -1
app.py CHANGED
@@ -85,10 +85,19 @@ additional_inputs=[
85
  )
86
  ]
87
 
 
 
 
 
 
 
 
88
 
89
  gr.ChatInterface(
90
  fn=generate,
91
  chatbot=gr.Chatbot(show_label=False, show_share_button=False, show_copy_button=True, likeable=True, layout="panel"),
92
  additional_inputs=additional_inputs,
93
- title="Mixtral 46.7B"
 
 
94
  ).launch(show_api=False)
 
85
  )
86
  ]
87
 
88
+ examples=[["I'm planning a vacation to Japan. Can you suggest a one-week itinerary including must-visit places and local cuisines to try?", None, None, None, None, None, ],
89
+ ["Can you write a short story about a time-traveling detective who solves historical mysteries?", None, None, None, None, None,],
90
+ ["I'm trying to learn French. Can you provide some common phrases that would be useful for a beginner, along with their pronunciations?", None, None, None, None, None,],
91
+ ["I have chicken, rice, and bell peppers in my kitchen. Can you suggest an easy recipe I can make with these ingredients?", None, None, None, None, None,],
92
+ ["Can you explain how the QuickSort algorithm works and provide a Python implementation?", None, None, None, None, None,],
93
+ ["What are some unique features of Rust that make it stand out compared to other systems programming languages like C++?", None, None, None, None, None,],
94
+ ]
95
 
96
  gr.ChatInterface(
97
  fn=generate,
98
  chatbot=gr.Chatbot(show_label=False, show_share_button=False, show_copy_button=True, likeable=True, layout="panel"),
99
  additional_inputs=additional_inputs,
100
+ title="Mixtral 46.7B",
101
+ examples=examples,
102
+ concurrency_limit=20,
103
  ).launch(show_api=False)