Update app.py
Browse files
app.py
CHANGED
@@ -66,7 +66,6 @@ def make_api_request():
|
|
66 |
match = re.search(r'"root"\s*:\s*"([^"]+)"', response.text)
|
67 |
api_url = match.group(1)
|
68 |
print(api_url)
|
69 |
-
print(response.text)
|
70 |
#------------------------------------------------------
|
71 |
|
72 |
def randomize_seed_fn(seed: int, randomize_seed: bool) -> int:
|
@@ -103,7 +102,7 @@ def generate(
|
|
103 |
seed = randomize_seed_fn(seed, randomize_seed)
|
104 |
np.random.seed(seed)
|
105 |
start_time = time.time()
|
106 |
-
url =
|
107 |
result = pipe(
|
108 |
prompt=prompt,
|
109 |
width=width,
|
|
|
66 |
match = re.search(r'"root"\s*:\s*"([^"]+)"', response.text)
|
67 |
api_url = match.group(1)
|
68 |
print(api_url)
|
|
|
69 |
#------------------------------------------------------
|
70 |
|
71 |
def randomize_seed_fn(seed: int, randomize_seed: bool) -> int:
|
|
|
102 |
seed = randomize_seed_fn(seed, randomize_seed)
|
103 |
np.random.seed(seed)
|
104 |
start_time = time.time()
|
105 |
+
url = api_url
|
106 |
result = pipe(
|
107 |
prompt=prompt,
|
108 |
width=width,
|