Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -48,7 +48,7 @@ def prompt_builder_predict(questionType=None, difficulty=0, topic=None, prerequi
|
|
| 48 |
if caseStudy:
|
| 49 |
prompt = prompt + 'This question must be in the form of case study where it tries to test the application of the topic in the real life scenario. '
|
| 50 |
if latex:
|
| 51 |
-
prompt = prompt + '
|
| 52 |
if additionalPrompt:
|
| 53 |
prompt = prompt + f"In addition, {additionalPrompt}."
|
| 54 |
|
|
@@ -74,7 +74,7 @@ with gr.Blocks() as demo:
|
|
| 74 |
|
| 75 |
with gr.Row():
|
| 76 |
caseStudy = gr.Checkbox(label="Case Study", info="Does this question test the application of theory in real life scenarios?")
|
| 77 |
-
latex = gr.Checkbox(label="LaTeX", info="Display all equations in
|
| 78 |
|
| 79 |
additionalInfo = gr.Textbox(label="Additional information (prompt)", placeholder="Give a scenario where Jim and John are working in a garden....")
|
| 80 |
|
|
|
|
| 48 |
if caseStudy:
|
| 49 |
prompt = prompt + 'This question must be in the form of case study where it tries to test the application of the topic in the real life scenario. '
|
| 50 |
if latex:
|
| 51 |
+
prompt = prompt + 'Display all mathematical equation parts of the question to LaTeX format. '
|
| 52 |
if additionalPrompt:
|
| 53 |
prompt = prompt + f"In addition, {additionalPrompt}."
|
| 54 |
|
|
|
|
| 74 |
|
| 75 |
with gr.Row():
|
| 76 |
caseStudy = gr.Checkbox(label="Case Study", info="Does this question test the application of theory in real life scenarios?")
|
| 77 |
+
latex = gr.Checkbox(label="LaTeX", info="Display all equations in LaTeX format?")
|
| 78 |
|
| 79 |
additionalInfo = gr.Textbox(label="Additional information (prompt)", placeholder="Give a scenario where Jim and John are working in a garden....")
|
| 80 |
|