Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -16,7 +16,7 @@ from datetime import datetime
|
|
| 16 |
# ---------- Configuration ----------
|
| 17 |
NVIDIA_API_KEY = os.environ.get("NVIDIA_API_KEY")
|
| 18 |
NVIDIA_URL = "https://integrate.api.nvidia.com/v1/chat/completions"
|
| 19 |
-
MODEL = "
|
| 20 |
|
| 21 |
# Two separate folders for the two framework types
|
| 22 |
AFSCTP_FOLDER = "./frameworks/standards"
|
|
@@ -621,6 +621,10 @@ with gr.Blocks(title="African Union Teacher Frameworks Self Assessment Tool") as
|
|
| 621 |
|
| 622 |
with gr.Row():
|
| 623 |
with gr.Column(scale=1):
|
|
|
|
|
|
|
|
|
|
|
|
|
| 624 |
gr.Markdown("### Framework Selection")
|
| 625 |
|
| 626 |
# Framework type selector (default to Standards)
|
|
@@ -650,9 +654,6 @@ with gr.Blocks(title="African Union Teacher Frameworks Self Assessment Tool") as
|
|
| 650 |
status_text = gr.Textbox(label="Status", value="Waiting", interactive=False)
|
| 651 |
country_text = gr.Textbox(label="Detected Country", value="Unknown", interactive=False)
|
| 652 |
|
| 653 |
-
# Dynamic criteria display based on selection
|
| 654 |
-
with gr.Accordion("View Evaluation Criteria & Scoring Descriptors", open=False):
|
| 655 |
-
criteria_markdown = gr.Markdown(AFSCTP_DISPLAY)
|
| 656 |
|
| 657 |
pdf_output = gr.File(label="Download PDF Report", visible=False)
|
| 658 |
|
|
|
|
| 16 |
# ---------- Configuration ----------
|
| 17 |
NVIDIA_API_KEY = os.environ.get("NVIDIA_API_KEY")
|
| 18 |
NVIDIA_URL = "https://integrate.api.nvidia.com/v1/chat/completions"
|
| 19 |
+
MODEL = "meta/llama-4-maverick-17b-128e-instruct"
|
| 20 |
|
| 21 |
# Two separate folders for the two framework types
|
| 22 |
AFSCTP_FOLDER = "./frameworks/standards"
|
|
|
|
| 621 |
|
| 622 |
with gr.Row():
|
| 623 |
with gr.Column(scale=1):
|
| 624 |
+
# Dynamic criteria display based on selection
|
| 625 |
+
with gr.Accordion("View Evaluation Criteria & Scoring Descriptors", open=False):
|
| 626 |
+
criteria_markdown = gr.Markdown(AFSCTP_DISPLAY)
|
| 627 |
+
|
| 628 |
gr.Markdown("### Framework Selection")
|
| 629 |
|
| 630 |
# Framework type selector (default to Standards)
|
|
|
|
| 654 |
status_text = gr.Textbox(label="Status", value="Waiting", interactive=False)
|
| 655 |
country_text = gr.Textbox(label="Detected Country", value="Unknown", interactive=False)
|
| 656 |
|
|
|
|
|
|
|
|
|
|
| 657 |
|
| 658 |
pdf_output = gr.File(label="Download PDF Report", visible=False)
|
| 659 |
|