Use unique app name to avoid ConflictError on restart
Browse files
scripts/cloud/embed_modal.py
CHANGED
|
@@ -33,7 +33,8 @@ image = (
|
|
| 33 |
)
|
| 34 |
)
|
| 35 |
|
| 36 |
-
|
|
|
|
| 37 |
hf_secret = modal.Secret.from_name("hf-secret")
|
| 38 |
|
| 39 |
OUT_REPO = "midah/patent-wireframes"
|
|
|
|
| 33 |
)
|
| 34 |
)
|
| 35 |
|
| 36 |
+
import time as _time
|
| 37 |
+
app = modal.App(f"patent-clip-{int(_time.time()) % 10000}", image=image)
|
| 38 |
hf_secret = modal.Secret.from_name("hf-secret")
|
| 39 |
|
| 40 |
OUT_REPO = "midah/patent-wireframes"
|