Update app.py
Browse files
app.py
CHANGED
|
@@ -166,7 +166,7 @@ def create_demo():
|
|
| 166 |
with gr.Tabs():
|
| 167 |
with gr.TabItem("Text problem solver (OpenRouter)"):
|
| 168 |
with gr.Row():
|
| 169 |
-
with gr.Column(
|
| 170 |
openrouter_api_key= gr.Textbox(
|
| 171 |
label= "OpenRouter API key",
|
| 172 |
placeholder= "enter your API key here",
|
|
@@ -191,7 +191,7 @@ def create_demo():
|
|
| 191 |
openrouter_submit_btn= gr.Button("solve problem", variant= "primary")
|
| 192 |
openrouter_clear_btn= gr.Button("Clear")
|
| 193 |
|
| 194 |
-
with gr.Column(
|
| 195 |
openrouter_solution_output= gr.Markdown(label="Solution")
|
| 196 |
|
| 197 |
openrouter_conversation_history= gr.State(value=None)
|
|
@@ -210,7 +210,7 @@ def create_demo():
|
|
| 210 |
|
| 211 |
with gr.TabItem("Text problem solver (Together AI)"):
|
| 212 |
with gr.Row():
|
| 213 |
-
with gr.Column(
|
| 214 |
together_api_key= gr.Textbox(
|
| 215 |
label= "Together API key",
|
| 216 |
placeholder= "enter your API key here",
|
|
@@ -229,7 +229,7 @@ def create_demo():
|
|
| 229 |
together_submit_btn= gr.Button("Solve Problem", variant="primary")
|
| 230 |
together_clear_btn = gr.Button("clear")
|
| 231 |
|
| 232 |
-
with gr.Column(
|
| 233 |
together_solution_output= gr.Markdown(label="Solution")
|
| 234 |
|
| 235 |
together_conversation_history= gr.State(value=None)
|
|
|
|
| 166 |
with gr.Tabs():
|
| 167 |
with gr.TabItem("Text problem solver (OpenRouter)"):
|
| 168 |
with gr.Row():
|
| 169 |
+
with gr.Column(scale=1): #left side
|
| 170 |
openrouter_api_key= gr.Textbox(
|
| 171 |
label= "OpenRouter API key",
|
| 172 |
placeholder= "enter your API key here",
|
|
|
|
| 191 |
openrouter_submit_btn= gr.Button("solve problem", variant= "primary")
|
| 192 |
openrouter_clear_btn= gr.Button("Clear")
|
| 193 |
|
| 194 |
+
with gr.Column(scale=2): #right side
|
| 195 |
openrouter_solution_output= gr.Markdown(label="Solution")
|
| 196 |
|
| 197 |
openrouter_conversation_history= gr.State(value=None)
|
|
|
|
| 210 |
|
| 211 |
with gr.TabItem("Text problem solver (Together AI)"):
|
| 212 |
with gr.Row():
|
| 213 |
+
with gr.Column(scale=1): #left side
|
| 214 |
together_api_key= gr.Textbox(
|
| 215 |
label= "Together API key",
|
| 216 |
placeholder= "enter your API key here",
|
|
|
|
| 229 |
together_submit_btn= gr.Button("Solve Problem", variant="primary")
|
| 230 |
together_clear_btn = gr.Button("clear")
|
| 231 |
|
| 232 |
+
with gr.Column(scale=2):
|
| 233 |
together_solution_output= gr.Markdown(label="Solution")
|
| 234 |
|
| 235 |
together_conversation_history= gr.State(value=None)
|