Spaces:
Running
on
Zero
Running
on
Zero
Update app.py
Browse files
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,
|
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 |
|
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 |
|