suriya7 commited on
Commit
d9a7313
·
verified ·
1 Parent(s): 73f027a

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -1
app.py CHANGED
@@ -45,6 +45,7 @@ def run_generation(user_text, top_p, temperature, top_k, max_new_tokens):
45
  max_new_tokens=max_new_tokens,
46
  do_sample=True,
47
  top_p=top_p,
 
48
  temperature=float(temperature),
49
  top_k=top_k,
50
  )
@@ -101,7 +102,7 @@ with gr.Blocks() as demo:
101
 
102
  user_text.submit(
103
  run_generation,
104
- [user_text,repetition_penalty=1.5,temperature,do_sample=True,top_k, max_new_tokens],
105
  model_output,
106
  )
107
  button_submit.click(
 
45
  max_new_tokens=max_new_tokens,
46
  do_sample=True,
47
  top_p=top_p,
48
+ repetition_penalty=1.5,
49
  temperature=float(temperature),
50
  top_k=top_k,
51
  )
 
102
 
103
  user_text.submit(
104
  run_generation,
105
+ [user_text,temperature,top_k, max_new_tokens],
106
  model_output,
107
  )
108
  button_submit.click(