ImagineAI-Real commited on
Commit
d0d7c4f
·
1 Parent(s): 0e1aa7f

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
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