Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -26,7 +26,7 @@ def infer(portrait_in, prompt_in):
|
|
26 |
break # Exit the while loop if the operation succeeded
|
27 |
except Exception as e:
|
28 |
print(f"Operation failed with error: {e}")
|
29 |
-
time.sleep(
|
30 |
|
31 |
unique_id = str(uuid.uuid4())
|
32 |
|
|
|
26 |
break # Exit the while loop if the operation succeeded
|
27 |
except Exception as e:
|
28 |
print(f"Operation failed with error: {e}")
|
29 |
+
time.sleep(10) # Wait for 5 seconds before attempting again
|
30 |
|
31 |
unique_id = str(uuid.uuid4())
|
32 |
|