Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -4,7 +4,7 @@ from dotenv import load_dotenv
|
|
4 |
from openai import OpenAI
|
5 |
from prompts.main_prompt import MAIN_PROMPT
|
6 |
|
7 |
-
# Load API key
|
8 |
if os.path.exists(".env"):
|
9 |
load_dotenv(".env")
|
10 |
|
@@ -37,7 +37,7 @@ def respond(user_message, history):
|
|
37 |
|
38 |
return "", history
|
39 |
|
40 |
-
# ✅
|
41 |
with gr.Blocks() as demo:
|
42 |
gr.Markdown("# AI-Guided Math PD Chatbot")
|
43 |
|
|
|
4 |
from openai import OpenAI
|
5 |
from prompts.main_prompt import MAIN_PROMPT
|
6 |
|
7 |
+
# ✅ Load API key
|
8 |
if os.path.exists(".env"):
|
9 |
load_dotenv(".env")
|
10 |
|
|
|
37 |
|
38 |
return "", history
|
39 |
|
40 |
+
# ✅ Ensure MathJax is enabled for LaTeX rendering
|
41 |
with gr.Blocks() as demo:
|
42 |
gr.Markdown("# AI-Guided Math PD Chatbot")
|
43 |
|