Spaces:
Sleeping
Sleeping
capradeepgujaran
commited on
Commit
•
f1c746e
1
Parent(s):
e178727
Update app.py
Browse files
app.py
CHANGED
@@ -28,7 +28,7 @@ class QuizGenerator:
|
|
28 |
self.client = Groq(api_key=api_key)
|
29 |
|
30 |
def generate_questions(self, text: str, num_questions: int) -> List[Question]:
|
31 |
-
"""Generate quiz questions using
|
32 |
prompt = self._create_prompt(text, num_questions)
|
33 |
|
34 |
try:
|
@@ -44,7 +44,7 @@ class QuizGenerator:
|
|
44 |
"content": prompt
|
45 |
}
|
46 |
],
|
47 |
-
model="
|
48 |
temperature=0.1,
|
49 |
max_tokens=1024
|
50 |
)
|
|
|
28 |
self.client = Groq(api_key=api_key)
|
29 |
|
30 |
def generate_questions(self, text: str, num_questions: int) -> List[Question]:
|
31 |
+
"""Generate quiz questions using gemma2-9b-it"""
|
32 |
prompt = self._create_prompt(text, num_questions)
|
33 |
|
34 |
try:
|
|
|
44 |
"content": prompt
|
45 |
}
|
46 |
],
|
47 |
+
model="gemma2-9b-it",
|
48 |
temperature=0.1,
|
49 |
max_tokens=1024
|
50 |
)
|