QuickLearnerAI commited on
Commit
12af1be
·
verified ·
1 Parent(s): 213b076

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -4
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(Scale=1): #left side
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(Scale=2): #right side
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(Scale=1): #left side
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(Scale=2):
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)