Spaces:
Build error
Build error
Update app.py
Browse files
app.py
CHANGED
|
@@ -71,14 +71,14 @@ def txt2img_workflow(checkpoint_name, positive_prompt):
|
|
| 71 |
previous_image = get_latest_image()
|
| 72 |
|
| 73 |
start_queue(prompt)
|
| 74 |
-
|
| 75 |
-
while True:
|
| 76 |
latest_image = get_latest_image()
|
| 77 |
if latest_image != previous_image:
|
| 78 |
return latest_image
|
| 79 |
|
| 80 |
time.sleep(1)
|
| 81 |
-
|
| 82 |
|
| 83 |
|
| 84 |
def main():
|
|
|
|
| 71 |
previous_image = get_latest_image()
|
| 72 |
|
| 73 |
start_queue(prompt)
|
| 74 |
+
return True
|
| 75 |
+
"""while True:
|
| 76 |
latest_image = get_latest_image()
|
| 77 |
if latest_image != previous_image:
|
| 78 |
return latest_image
|
| 79 |
|
| 80 |
time.sleep(1)
|
| 81 |
+
"""
|
| 82 |
|
| 83 |
|
| 84 |
def main():
|