manthilaffs commited on
Commit
8cc2540
·
verified ·
1 Parent(s): 6285581

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -94,7 +94,7 @@ with gr.Blocks(
94
  # temperature = gr.Slider(0.1, 1.5, value=0.5, step=0.05, label="🌡 Temperature (0 = more focused)")
95
  # top_p = gr.Slider(0.1, 1.0, value=0.95, step=0.01, label="🎯 Top-p (Nucleus Sampling)")
96
  # repetition_penalty = gr.Slider(0.8, 2.0, value=1.05, step=0.05, label="♻️ Repetition Penalty")
97
- max_new_tokens = gr.Slider(32, 1024, value=256, step=32, label="🔢 Max New Tokens")
98
 
99
  run_btn = gr.Button("Generate Response", variant="primary", scale=1)
100
  # status = gr.Markdown("", elem_id="status-text")
@@ -146,7 +146,7 @@ with gr.Blocks(
146
 
147
  run_btn.click(
148
  process_with_status,
149
- inputs=[instruction, input_text, temperature, top_p, repetition_penalty, max_new_tokens],
150
  outputs=[status, run_btn, output],
151
  show_progress=True,
152
  )
 
94
  # temperature = gr.Slider(0.1, 1.5, value=0.5, step=0.05, label="🌡 Temperature (0 = more focused)")
95
  # top_p = gr.Slider(0.1, 1.0, value=0.95, step=0.01, label="🎯 Top-p (Nucleus Sampling)")
96
  # repetition_penalty = gr.Slider(0.8, 2.0, value=1.05, step=0.05, label="♻️ Repetition Penalty")
97
+ max_new_tokens = gr.Slider(32, 1024, value=256, step=32, label="Max New Tokens")
98
 
99
  run_btn = gr.Button("Generate Response", variant="primary", scale=1)
100
  # status = gr.Markdown("", elem_id="status-text")
 
146
 
147
  run_btn.click(
148
  process_with_status,
149
+ inputs=[instruction, input_text, max_new_tokens],
150
  outputs=[status, run_btn, output],
151
  show_progress=True,
152
  )