Update app.py
Browse files
app.py
CHANGED
@@ -107,23 +107,21 @@ with gr.Blocks(theme=gr.themes.Soft()) as demo:
|
|
107 |
temperature_slider = gr.Slider(minimum=0.1, maximum=2.0, value=0.6, label="Temperature")
|
108 |
top_p_slider = gr.Slider(minimum=0.1, maximum=1.0, value=0.95, label="Top-p")
|
109 |
|
110 |
-
with gr.Column(
|
111 |
-
chatbot = gr.Chatbot(label="Chat", type="messages")
|
112 |
user_input = gr.Textbox(
|
113 |
-
|
114 |
-
|
115 |
-
|
116 |
-
|
117 |
-
|
118 |
-
)
|
119 |
with gr.Row():
|
120 |
submit_button = gr.Button("Send", variant="primary", scale=1)
|
121 |
clear_button = gr.Button("Clear", scale=1)
|
122 |
gr.Markdown("**Try these examples:**")
|
123 |
with gr.Row():
|
124 |
-
example1_button = gr.Button("Combinatorics")
|
125 |
-
example2_button = gr.Button("Co-ordinate Geometry")
|
126 |
-
example3_button = gr.Button("Prob-Stats")
|
127 |
|
128 |
submit_button.click(
|
129 |
fn=generate_response,
|
|
|
107 |
temperature_slider = gr.Slider(minimum=0.1, maximum=2.0, value=0.6, label="Temperature")
|
108 |
top_p_slider = gr.Slider(minimum=0.1, maximum=1.0, value=0.95, label="Top-p")
|
109 |
|
110 |
+
with gr.Column():
|
|
|
111 |
user_input = gr.Textbox(
|
112 |
+
label="User Input",
|
113 |
+
placeholder="Type your question here...",
|
114 |
+
lines=2
|
115 |
+
)
|
116 |
+
|
|
|
117 |
with gr.Row():
|
118 |
submit_button = gr.Button("Send", variant="primary", scale=1)
|
119 |
clear_button = gr.Button("Clear", scale=1)
|
120 |
gr.Markdown("**Try these examples:**")
|
121 |
with gr.Row():
|
122 |
+
example1_button = gr.Button("JEE Main 2025 Combinatorics")
|
123 |
+
example2_button = gr.Button("JEE Main 2025 Co-ordinate Geometry")
|
124 |
+
example3_button = gr.Button("JEE Main 2025 Prob-Stats")
|
125 |
|
126 |
submit_button.click(
|
127 |
fn=generate_response,
|