update debugging code for markdown embed
Browse files
app.py
CHANGED
|
@@ -81,11 +81,13 @@ def chat(image_in, in_steps, in_guidance_scale, in_img_guidance_scale, image_hid
|
|
| 81 |
add_text_list = ["There you go", "Enjoy your image!", "Nice work! Wonder what you gonna do next!", "Way to go!", "Does this work for you?", "Something like this?"]
|
| 82 |
if counter_out > 0:
|
| 83 |
#response = edited_image
|
|
|
|
| 84 |
response = random.choice(add_text_list) + '<img src="/file=' + saved_image_name + '">' #temp_img_name
|
| 85 |
history.append((prompt, response))
|
| 86 |
return history, history, edited_image, temp_img_name, counter_out
|
| 87 |
else:
|
| 88 |
#response = edited_image
|
|
|
|
| 89 |
response = random.choice(add_text_list) + '<img src="/file=' + saved_image_name2 + '">' #IMG_NAME
|
| 90 |
history.append((prompt, response))
|
| 91 |
counter_out += 1
|
|
|
|
| 81 |
add_text_list = ["There you go", "Enjoy your image!", "Nice work! Wonder what you gonna do next!", "Way to go!", "Does this work for you?", "Something like this?"]
|
| 82 |
if counter_out > 0:
|
| 83 |
#response = edited_image
|
| 84 |
+
print(f"You are in {counter_out} pass")
|
| 85 |
response = random.choice(add_text_list) + '<img src="/file=' + saved_image_name + '">' #temp_img_name
|
| 86 |
history.append((prompt, response))
|
| 87 |
return history, history, edited_image, temp_img_name, counter_out
|
| 88 |
else:
|
| 89 |
#response = edited_image
|
| 90 |
+
print(f"You are in {counter_out} pass or FIRST Pass")
|
| 91 |
response = random.choice(add_text_list) + '<img src="/file=' + saved_image_name2 + '">' #IMG_NAME
|
| 92 |
history.append((prompt, response))
|
| 93 |
counter_out += 1
|