kelvinyasu commited on
Commit
870b2f7
·
1 Parent(s): eee0d11

Update app.py

Browse files

increase the limit

Files changed (1) hide show
  1. app.py +4 -6
app.py CHANGED
@@ -16,11 +16,9 @@ Demo by Kelvin Lo, UD
16
  """
17
  css = """.toast-wrap { display: none !important } """
18
  examples=[
19
- 'Hello there! How are you doing?',
20
- 'Can you explain to me briefly what is Python programming language?',
21
- 'Explain the plot of Cinderella in a sentence.',
22
- 'How many hours does it take a man to eat a Helicopter?',
23
- "Write a 100-word article on 'Benefits of Open-Source in AI research'",
24
  ]
25
 
26
 
@@ -34,7 +32,7 @@ def predict(message, chatbot):
34
 
35
  data = {
36
  "inputs": input_prompt,
37
- "parameters": {"max_new_tokens":256,
38
  "do_sample":True,
39
  "top_p":0.6,
40
  "temperature":0.9,}
 
16
  """
17
  css = """.toast-wrap { display: none !important } """
18
  examples=[
19
+ 'Can you write a javascripts sample to print the time now?',
20
+ '可以用中文字作詩比我?',
21
+ "Write a 100-word article on 'Benefits of private AI Server'",
 
 
22
  ]
23
 
24
 
 
32
 
33
  data = {
34
  "inputs": input_prompt,
35
+ "parameters": {"max_new_tokens":2560,
36
  "do_sample":True,
37
  "top_p":0.6,
38
  "temperature":0.9,}