rubenroy commited on
Commit
209496a
·
verified ·
1 Parent(s): 4706d9e

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -9
app.py CHANGED
@@ -152,14 +152,11 @@ TITLE_HTML = """
152
  </div>
153
  """
154
 
155
- # Define example conversations
156
  examples = [
157
  ["Explain quantum computing in simple terms"],
158
  ["Write a short story about a time traveler"],
159
- ["What are some tips for learning a new programming language?"],
160
- ["Can you help me solve this math problem: If x² + 5x + 6 = 0, what are the values of x?"],
161
  ["Explain the process of photosynthesis"],
162
- ["What are the key differences between machine learning and deep learning?"]
163
  ]
164
 
165
  with gr.Blocks() as demo:
@@ -174,7 +171,7 @@ with gr.Blocks() as demo:
174
  value=0.7,
175
  step=0.1,
176
  label="Temperature",
177
- info="Higher values make the output more random, lower values make it more focused and deterministic",
178
  interactive=True
179
  )
180
  top_p = gr.Slider(
@@ -211,7 +208,7 @@ with gr.Blocks() as demo:
211
  value=1.1,
212
  step=0.1,
213
  label="Repetition Penalty",
214
- info="Higher values prevent the model from repeating the same information",
215
  interactive=True
216
  )
217
 
@@ -224,9 +221,7 @@ with gr.Blocks() as demo:
224
  max_new_tokens,
225
  repetition_penalty
226
  ],
227
- examples=examples,
228
- title="Chat with Zurich",
229
- description="Ask me anything! I'm here to help with explanations, coding, math, writing, and more."
230
  )
231
 
232
  demo.launch(share=True)
 
152
  </div>
153
  """
154
 
 
155
  examples = [
156
  ["Explain quantum computing in simple terms"],
157
  ["Write a short story about a time traveler"],
 
 
158
  ["Explain the process of photosynthesis"],
159
+ ["Tell me a fact about Palm trees"]
160
  ]
161
 
162
  with gr.Blocks() as demo:
 
171
  value=0.7,
172
  step=0.1,
173
  label="Temperature",
174
+ info="Higher values make the output more random, lower values make it more deterministic",
175
  interactive=True
176
  )
177
  top_p = gr.Slider(
 
208
  value=1.1,
209
  step=0.1,
210
  label="Repetition Penalty",
211
+ info="Higher values stop the model from repeating the same info",
212
  interactive=True
213
  )
214
 
 
221
  max_new_tokens,
222
  repetition_penalty
223
  ],
224
+ examples=examples
 
 
225
  )
226
 
227
  demo.launch(share=True)