yasserrmd commited on
Commit
ec09a79
1 Parent(s): 9cd74ba

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +5 -2
app.py CHANGED
@@ -57,14 +57,17 @@ with gr.Blocks() as demo:
57
  ], label="Select Audience Category", value="Elder-Friendly")
58
 
59
  with gr.Row():
60
- max_length = gr.Slider(50, 500, value=150, step=10, label="Max Length")
61
  temperature = gr.Slider(0.1, 1.0, value=0.7, step=0.1, label="Temperature")
62
  with gr.Row():
63
  generate_button = gr.Button("Generate Explanation")
64
  with gr.Row():
65
  gr.Markdown("Generated Explanation")
66
  with gr.Row():
67
- output = gr.Markdown("Output will generate here")
 
 
 
68
 
69
  generate_button.click(generate_text, inputs=[prompt_input, max_length, temperature, category_input], outputs=output)
70
 
 
57
  ], label="Select Audience Category", value="Elder-Friendly")
58
 
59
  with gr.Row():
60
+ max_length = gr.Slider(50, 1500, value=750, step=30, label="Max Length")
61
  temperature = gr.Slider(0.1, 1.0, value=0.7, step=0.1, label="Temperature")
62
  with gr.Row():
63
  generate_button = gr.Button("Generate Explanation")
64
  with gr.Row():
65
  gr.Markdown("Generated Explanation")
66
  with gr.Row():
67
+ output = gr.Markdown("""
68
+ <div style="height: 200px;border: 1px solid #ddd; padding: 10px;">
69
+ Output will generate here
70
+ </div>""")
71
 
72
  generate_button.click(generate_text, inputs=[prompt_input, max_length, temperature, category_input], outputs=output)
73