Update app.py
Browse files
app.py
CHANGED
|
@@ -1,6 +1,7 @@
|
|
| 1 |
# Create a self-contained Gradio app that uses the agent-driven loop (Option A)
|
| 2 |
# It expects `level_classifier_tool.py` to be colocated (or installed on PYTHONPATH).
|
| 3 |
import sys
|
|
|
|
| 4 |
from huggingface_hub import login
|
| 5 |
login(os.getenv("HF_Token"))
|
| 6 |
import json
|
|
@@ -17,7 +18,6 @@ from level_classifier_tool_2 import (
|
|
| 17 |
HFEmbeddingBackend,
|
| 18 |
build_phrase_index
|
| 19 |
)
|
| 20 |
-
import os
|
| 21 |
from task_temp import TASK_TMPL, CLASSIFY_TMPL, GEN_TMPL, RAG_TMPL
|
| 22 |
from all_tools import classify_and_score, QuestionRetrieverTool
|
| 23 |
from phrases import BLOOMS_PHRASES, DOK_PHRASES
|
|
|
|
| 1 |
# Create a self-contained Gradio app that uses the agent-driven loop (Option A)
|
| 2 |
# It expects `level_classifier_tool.py` to be colocated (or installed on PYTHONPATH).
|
| 3 |
import sys
|
| 4 |
+
import os
|
| 5 |
from huggingface_hub import login
|
| 6 |
login(os.getenv("HF_Token"))
|
| 7 |
import json
|
|
|
|
| 18 |
HFEmbeddingBackend,
|
| 19 |
build_phrase_index
|
| 20 |
)
|
|
|
|
| 21 |
from task_temp import TASK_TMPL, CLASSIFY_TMPL, GEN_TMPL, RAG_TMPL
|
| 22 |
from all_tools import classify_and_score, QuestionRetrieverTool
|
| 23 |
from phrases import BLOOMS_PHRASES, DOK_PHRASES
|