clone3 commited on
Commit
ce2ea11
·
1 Parent(s): fd78c14

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
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(120, make_api_request).start()
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: