Spaces:
Sleeping
Sleeping
Update src/quiz_processing.py
Browse files- src/quiz_processing.py +0 -3
src/quiz_processing.py
CHANGED
@@ -86,8 +86,6 @@ def split_text_by_tokens(text, max_tokens=12000):
|
|
86 |
|
87 |
|
88 |
def generate_with_claude(text, api_key, course_name="", section_name="", lesson_name=""):
|
89 |
-
from prompts import SYSTEM_PROMPT, ANALYSIS_PROMPT_TEMPLATE_CLAUDE
|
90 |
-
|
91 |
client = Anthropic(api_key=api_key)
|
92 |
|
93 |
segment_analysis_schema = TextSegmentAnalysis.model_json_schema()
|
@@ -148,7 +146,6 @@ def segment_and_analyze_text(text: str, gemini_api_key: str, claude_api_key: str
|
|
148 |
return generate_with_claude(text, active_key, course_name, section_name, lesson_name)
|
149 |
|
150 |
from langchain_google_genai import ChatGoogleGenerativeAI
|
151 |
-
from prompts import ANALYSIS_PROMPT_TEMPLATE_GEMINI, SYSTEM_PROMPT
|
152 |
os.environ["GOOGLE_API_KEY"] = active_key
|
153 |
llm = ChatGoogleGenerativeAI(
|
154 |
model=GEMINI_MODEL,
|
|
|
86 |
|
87 |
|
88 |
def generate_with_claude(text, api_key, course_name="", section_name="", lesson_name=""):
|
|
|
|
|
89 |
client = Anthropic(api_key=api_key)
|
90 |
|
91 |
segment_analysis_schema = TextSegmentAnalysis.model_json_schema()
|
|
|
146 |
return generate_with_claude(text, active_key, course_name, section_name, lesson_name)
|
147 |
|
148 |
from langchain_google_genai import ChatGoogleGenerativeAI
|
|
|
149 |
os.environ["GOOGLE_API_KEY"] = active_key
|
150 |
llm = ChatGoogleGenerativeAI(
|
151 |
model=GEMINI_MODEL,
|