Spaces:
Running
on
CPU Upgrade
Running
on
CPU Upgrade
Upload folder using huggingface_hub
Browse files- modules/quiz/models.py +1 -1
- modules/quiz/quiz_helper.py +1 -1
modules/quiz/models.py
CHANGED
|
@@ -12,7 +12,7 @@ class Question(BaseModel):
|
|
| 12 |
description="The scripture title this question is sourced from (e.g., Bhagavad Gita, Divya Prabandham)"
|
| 13 |
)
|
| 14 |
native_lyrics: str = Field(
|
| 15 |
-
description="The lyrics in its native/original script (e.g., Sanskrit/Tamil). Sanitize this if there are garbled characters."
|
| 16 |
)
|
| 17 |
transliteration: str = Field(
|
| 18 |
description="The transliterated text of the verse in English/the user's preferred language"
|
|
|
|
| 12 |
description="The scripture title this question is sourced from (e.g., Bhagavad Gita, Divya Prabandham)"
|
| 13 |
)
|
| 14 |
native_lyrics: str = Field(
|
| 15 |
+
description="The lyrics in its native/original script (e.g., Sanskrit/Tamil). Sanitize this if there are garbled characters. This could be multi-line. capture entirely."
|
| 16 |
)
|
| 17 |
transliteration: str = Field(
|
| 18 |
description="The transliterated text of the verse in English/the user's preferred language"
|
modules/quiz/quiz_helper.py
CHANGED
|
@@ -50,7 +50,7 @@ def generate_question(
|
|
| 50 |
|
| 51 |
# 3. Structured response with Pydantic class reference
|
| 52 |
response = client.chat.completions.parse(
|
| 53 |
-
model="gpt-
|
| 54 |
messages=[{"role": "user", "content": prompt}],
|
| 55 |
response_format=Question,
|
| 56 |
)
|
|
|
|
| 50 |
|
| 51 |
# 3. Structured response with Pydantic class reference
|
| 52 |
response = client.chat.completions.parse(
|
| 53 |
+
model="gpt-4o-mini",
|
| 54 |
messages=[{"role": "user", "content": prompt}],
|
| 55 |
response_format=Question,
|
| 56 |
)
|