Spaces:
Sleeping
Sleeping
Update VL_output_to_json.py
Browse files- VL_output_to_json.py +2 -2
VL_output_to_json.py
CHANGED
|
@@ -265,7 +265,7 @@ def inject_plain_text_subquestions(text: str, inherited_qno=None):
|
|
| 265 |
def extract_questions_with_groq(
|
| 266 |
client: Groq,
|
| 267 |
text: str,
|
| 268 |
-
model: str = "
|
| 269 |
):
|
| 270 |
prompt = f"""
|
| 271 |
You are an expert assistant. Extract all exam questions from the following Markdown/HTML content.
|
|
@@ -312,7 +312,7 @@ Markdown/HTML content:
|
|
| 312 |
messages=[{"role": "user", "content": prompt}],
|
| 313 |
model=model,
|
| 314 |
temperature=0,
|
| 315 |
-
max_tokens=
|
| 316 |
)
|
| 317 |
|
| 318 |
raw = response.choices[0].message.content
|
|
|
|
| 265 |
def extract_questions_with_groq(
|
| 266 |
client: Groq,
|
| 267 |
text: str,
|
| 268 |
+
model: str = "llama-3.3-70b-versatile"
|
| 269 |
):
|
| 270 |
prompt = f"""
|
| 271 |
You are an expert assistant. Extract all exam questions from the following Markdown/HTML content.
|
|
|
|
| 312 |
messages=[{"role": "user", "content": prompt}],
|
| 313 |
model=model,
|
| 314 |
temperature=0,
|
| 315 |
+
max_tokens=7000
|
| 316 |
)
|
| 317 |
|
| 318 |
raw = response.choices[0].message.content
|