Amitontheweb commited on
Commit
88f057d
1 Parent(s): 689a009

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +12 -9
app.py CHANGED
@@ -394,16 +394,19 @@ with gr.Blocks() as demo:
394
 
395
  #-------------GENERATE BUTTON-------------------
396
 
397
- button = gr.Button("Generate", min_width=30)
398
-
399
- button.click(
400
- fn = generate,
401
- inputs=[text, n_steps, n_beams, beam_groups, diversity_penalty, length_penalty, num_return_sequences, temperature, no_repeat_ngram_size, repetition_penalty, early_stopping, beam_temperature, top_p, top_k,penalty_alpha,top_p_box,top_k_box,strategy_selected,model_selected],
402
- outputs=[out_markdown]
403
- )
404
 
405
- cleared = gr.Button ("Clear", min_width=30)
406
- cleared.click (fn=clear, inputs=[], outputs=[out_markdown])
 
 
 
 
 
 
 
 
407
 
408
 
409
 
 
394
 
395
  #-------------GENERATE BUTTON-------------------
396
 
397
+ with gr.Row():
398
+ with gr.Column (scale=0, min_width=200):
 
 
 
 
 
399
 
400
+ button = gr.Button("Generate")
401
+
402
+ button.click(
403
+ fn = generate,
404
+ inputs=[text, n_steps, n_beams, beam_groups, diversity_penalty, length_penalty, num_return_sequences, temperature, no_repeat_ngram_size, repetition_penalty, early_stopping, beam_temperature, top_p, top_k,penalty_alpha,top_p_box,top_k_box,strategy_selected,model_selected],
405
+ outputs=[out_markdown]
406
+ )
407
+ with gr.Column (scale=0, min_width=200):
408
+ cleared = gr.Button ("Clear")
409
+ cleared.click (fn=clear, inputs=[], outputs=[out_markdown])
410
 
411
 
412