Spaces:
Runtime error
Runtime error
Commit
·
d0d7c4f
1
Parent(s):
0e1aa7f
Update app.py
Browse files
app.py
CHANGED
@@ -6,7 +6,7 @@ import io
|
|
6 |
|
7 |
def generate_image(prompt):
|
8 |
url = "https://d0d2ae5d-c88f-4283-ac3e-cc20cf66bfaa.id.repl.co/generate_image?prompt="+prompt
|
9 |
-
response = requests.get(url)
|
10 |
data = response.json()
|
11 |
base64_image = data["image"]
|
12 |
|
|
|
6 |
|
7 |
def generate_image(prompt):
|
8 |
url = "https://d0d2ae5d-c88f-4283-ac3e-cc20cf66bfaa.id.repl.co/generate_image?prompt="+prompt
|
9 |
+
response = requests.get(url, timeout=999)
|
10 |
data = response.json()
|
11 |
base64_image = data["image"]
|
12 |
|