Spaces:
Sleeping
Sleeping
Update quiz_processing.py
Browse files- quiz_processing.py +1 -1
quiz_processing.py
CHANGED
|
@@ -320,7 +320,7 @@ def analyze_document(text, gemini_api_key, claude_api_key, course_name, section_
|
|
| 320 |
|
| 321 |
token_info = f"Input tokens: {input_tokens}\nOutput tokens: {output_tokens}\nTotal tokens: {input_tokens + output_tokens}\n"
|
| 322 |
formatted_text = format_quiz_for_display(all_results, language)
|
| 323 |
-
formatted_text = f"Total Processing time: {total_time:.2f}s\n{token_info}\n" + formatted_text
|
| 324 |
|
| 325 |
output_tokens = len(tokenizer.encode(formatted_output))
|
| 326 |
json_path = tempfile.mktemp(suffix='.json')
|
|
|
|
| 320 |
|
| 321 |
token_info = f"Input tokens: {input_tokens}\nOutput tokens: {output_tokens}\nTotal tokens: {input_tokens + output_tokens}\n"
|
| 322 |
formatted_text = format_quiz_for_display(all_results, language)
|
| 323 |
+
formatted_text = f"Total quiz Processing time: {total_time:.2f}s\n{token_info}\n" + formatted_text
|
| 324 |
|
| 325 |
output_tokens = len(tokenizer.encode(formatted_output))
|
| 326 |
json_path = tempfile.mktemp(suffix='.json')
|