Update app.py
Browse files
app.py
CHANGED
|
@@ -66,12 +66,12 @@ def make_api_request():
|
|
| 66 |
response = requests.get("https://genielamp-image9.hf.space/")
|
| 67 |
api_url = response.text
|
| 68 |
match = re.search(r'"root"\s*:\s*"([^"]+)"', response.text)
|
| 69 |
-
api_url = match.group(1)
|
| 70 |
print(api_url)
|
| 71 |
|
| 72 |
|
| 73 |
def delayed_api_request():
|
| 74 |
-
threading.Timer(
|
| 75 |
#------------------------------------------------------
|
| 76 |
|
| 77 |
def randomize_seed_fn(seed: int, randomize_seed: bool) -> int:
|
|
|
|
| 66 |
response = requests.get("https://genielamp-image9.hf.space/")
|
| 67 |
api_url = response.text
|
| 68 |
match = re.search(r'"root"\s*:\s*"([^"]+)"', response.text)
|
| 69 |
+
api_url = match.group(1) + "/file="
|
| 70 |
print(api_url)
|
| 71 |
|
| 72 |
|
| 73 |
def delayed_api_request():
|
| 74 |
+
threading.Timer(10, make_api_request).start()
|
| 75 |
#------------------------------------------------------
|
| 76 |
|
| 77 |
def randomize_seed_fn(seed: int, randomize_seed: bool) -> int:
|