Update app.py
Browse files
app.py
CHANGED
@@ -1,7 +1,7 @@
|
|
1 |
import gradio as gr
|
2 |
import os
|
3 |
import re
|
4 |
-
|
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("""
|