shukdevdatta123 commited on
Commit
ddb966e
·
verified ·
1 Parent(s): 76b0d35

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +5 -3
app.py CHANGED
@@ -1,7 +1,7 @@
1
  import gradio as gr
2
  import os
3
  import re
4
- # import markdown
5
  from openai import OpenAI
6
  import time
7
 
@@ -201,9 +201,11 @@ def create_demo():
201
  solve_practice_btn.click(
202
  fn=lambda problem: problem,
203
  inputs=[practice_problem_output],
204
- outputs=[problem_input],
205
- _js="() => {document.querySelector('button[id^=\"tabitem\"]').click();}"
206
  )
 
 
 
207
 
208
  with gr.TabItem("Help"):
209
  gr.Markdown("""
 
1
  import gradio as gr
2
  import os
3
  import re
4
+ import markdown
5
  from openai import OpenAI
6
  import time
7
 
 
201
  solve_practice_btn.click(
202
  fn=lambda problem: problem,
203
  inputs=[practice_problem_output],
204
+ outputs=[problem_input]
 
205
  )
206
+
207
+ # Add instructions for manual tab switching
208
+ gr.Markdown("*After clicking 'Solve This Practice Problem', please switch to the Problem Solver tab manually*")
209
 
210
  with gr.TabItem("Help"):
211
  gr.Markdown("""