Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -75,12 +75,14 @@ with gr.Blocks() as iface:
|
|
75 |
|
76 |
input_text = gr.Textbox(lines=2, label="Input Text", placeholder="Enter your query here")
|
77 |
selected_model = gr.Dropdown(choices=MODEL_OPTIONS, label="Select Model", value=MODEL_OPTIONS[0])
|
78 |
-
|
|
|
|
|
|
|
79 |
output_response = gr.Textbox(label="Response", placeholder="Response will be shown here")
|
80 |
output_history = gr.Textbox(label="History", placeholder="Interaction history will be shown here", lines=10, interactive=False)
|
81 |
-
|
82 |
-
# Trigger the function when the user
|
83 |
-
generate_button = gr.Button("Generate")
|
84 |
generate_button.click(generate_text, inputs=[input_text, selected_model, gr.State()], outputs=[output_response, output_history])
|
85 |
|
86 |
# Launch the interface
|
|
|
75 |
|
76 |
input_text = gr.Textbox(lines=2, label="Input Text", placeholder="Enter your query here")
|
77 |
selected_model = gr.Dropdown(choices=MODEL_OPTIONS, label="Select Model", value=MODEL_OPTIONS[0])
|
78 |
+
|
79 |
+
# Generate button positioned below the dropdown
|
80 |
+
generate_button = gr.Button("Generate")
|
81 |
+
|
82 |
output_response = gr.Textbox(label="Response", placeholder="Response will be shown here")
|
83 |
output_history = gr.Textbox(label="History", placeholder="Interaction history will be shown here", lines=10, interactive=False)
|
84 |
+
|
85 |
+
# Trigger the function when the user clicks the "Generate" button
|
|
|
86 |
generate_button.click(generate_text, inputs=[input_text, selected_model, gr.State()], outputs=[output_response, output_history])
|
87 |
|
88 |
# Launch the interface
|