Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -341,7 +341,8 @@ def process():
|
|
| 341 |
return jsonify({'success': False, 'error': 'No filename'}), 400
|
| 342 |
|
| 343 |
api_key = request.form.get('api_key') or DEFAULT_GROQ_KEY
|
| 344 |
-
|
|
|
|
| 345 |
|
| 346 |
# Save Upload
|
| 347 |
timestamp = datetime.now().strftime("%Y%m%d_%H%M%S")
|
|
|
|
| 341 |
return jsonify({'success': False, 'error': 'No filename'}), 400
|
| 342 |
|
| 343 |
api_key = request.form.get('api_key') or DEFAULT_GROQ_KEY
|
| 344 |
+
# Changed default threshold from 0.2 to 0.4 (40%)
|
| 345 |
+
threshold = float(request.form.get('threshold', 0.4))
|
| 346 |
|
| 347 |
# Save Upload
|
| 348 |
timestamp = datetime.now().strftime("%Y%m%d_%H%M%S")
|