lewtun HF staff commited on
Commit
d1eae91
1 Parent(s): db47125

Add javascript example

Browse files
Files changed (1) hide show
  1. app.py +3 -2
app.py CHANGED
@@ -155,7 +155,8 @@ examples = [
155
  "How can I write a Python function to generate the nth Fibonacci number?",
156
  "How do I get the current date using shell commands? Explain how it works.",
157
  "What's the meaning of life?",
158
- "Write a function in Python to reverse words in a given string.",
 
159
  ]
160
 
161
 
@@ -261,7 +262,7 @@ with gr.Blocks(analytics_enabled=False, css=custom_css) as demo:
261
  )
262
  max_new_tokens = gr.Slider(
263
  label="Max new tokens",
264
- value=256,
265
  minimum=0,
266
  maximum=512,
267
  step=4,
 
155
  "How can I write a Python function to generate the nth Fibonacci number?",
156
  "How do I get the current date using shell commands? Explain how it works.",
157
  "What's the meaning of life?",
158
+ "Write a function in Javascript to reverse words in a given string.",
159
+ "Give the following data {'Name':['Tom', 'Brad', 'Kyle', 'Jerry'], 'Age':[20, 21, 19, 18], 'Height' : [6.1, 5.9, 6.0, 6.1]}. Can you plot one graph with two subplots as columns. The first is a bar graph showing the height of each person. The second is a bargraph showing the age of each person? Draw the graph in seaborn talk mode.",
160
  ]
161
 
162
 
 
262
  )
263
  max_new_tokens = gr.Slider(
264
  label="Max new tokens",
265
+ value=512,
266
  minimum=0,
267
  maximum=512,
268
  step=4,