Skip to content

Commit fcf7e85

Browse files
committed
test
1 parent 59e7a8a commit fcf7e85

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

evaluation_function/evaluation.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -365,8 +365,7 @@ def analyze_images(images, draw_images=True):
365365
total_time = time.time() - start_total
366366

367367
if params.get('debug', False):
368-
feedback_items.append(("TEST", "\n| Centered text |\n|:-------------:|\n| Hello woytfguyfgiuyftytfiufuytifuyttfuytyftyfityfifyttfiituyftfyifiytuituyfrld |\n **abc** \n\n"))
369-
feedback_items.append(("TEST", "\n\n <p align='center'>Ten tekst będzie wycentrowany</p>\n\n"))
368+
370369
# print response structure for debugging purposes
371370
try:
372371
# use repr to avoid issues with binary data
@@ -401,6 +400,8 @@ def analyze_images(images, draw_images=True):
401400
append_feedback(f'Uploaded Image [{idx}]', f'![{name}]({response[idx]["url"]})')
402401

403402
append_feedback("DEBUG Times:", f"--- DEBUG Times ---\nModel load: {model_load_time:.3f}s\nAvg image load: {avg_load_time:.3f}s\nAvg prediction: {avg_prediction_time:.3f}s\nAvg detection process: {avg_process_time:.3f}s\nAvg drawing: {avg_draw_time:.3f}s\nAvg upload: {avg_upload_time:.3f}s\nAnalysis: {analysis_time:.3f}s\nFeedback: {feedback_time:.3f}s\nTotal: {total_time:.3f}s")
403+
feedback_items.append(("TEST", "\n| Centered text |\n|:-------------:|\n| Hello woytfguyfgiuyftytfiufuytifuyttfuytyftyfityfifyttfiituyftfyifiytuituyfrld |\n **abc** \n\n"))
404+
feedback_items.append(("TEST", "\n\n <p align='center'>Ten tekst będzie wycentrowany</p>\n\n"))
404405
is_correct = response_detection == target_class and response_detection is not None
405406

406407
return Result(

0 commit comments

Comments
 (0)