DarkSting commited on
Commit
57cae4e
·
verified ·
1 Parent(s): 65a0a32

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -264,7 +264,7 @@ def parse_matching_json(text):
264
  return {
265
  "matching_score": 0.0,
266
  "improvements": ["Failed to parse model output."],
267
- "raw_output": text[:300]
268
  }
269
 
270
 
@@ -288,7 +288,7 @@ def evaluate_question_topic_match(data):
288
 
289
  outputs = matching_model.generate(
290
  **inputs,
291
- max_new_tokens=400,
292
  do_sample=False,
293
  temperature=0.01,
294
  repetition_penalty=1.1,
 
264
  return {
265
  "matching_score": 0.0,
266
  "improvements": ["Failed to parse model output."],
267
+ "raw_output": text
268
  }
269
 
270
 
 
288
 
289
  outputs = matching_model.generate(
290
  **inputs,
291
+ max_new_tokens=200,
292
  do_sample=False,
293
  temperature=0.01,
294
  repetition_penalty=1.1,