zenafey commited on
Commit
75c80be
1 Parent(s): 01fe1dd

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -43,7 +43,7 @@ class Prodia:
43
 
44
  def generate_v2(self, config):
45
  response = self._post("https://inference.prodia.com/v2/job", {"type": "v2.job.sdxl.txt2img", "config": config}, v2=True)
46
- return Image.open(BytesIO(r.content)).convert("RGBA")
47
 
48
 
49
  def _post(self, url, params, v2=False):
 
43
 
44
  def generate_v2(self, config):
45
  response = self._post("https://inference.prodia.com/v2/job", {"type": "v2.job.sdxl.txt2img", "config": config}, v2=True)
46
+ return Image.open(BytesIO(response.content)).convert("RGBA")
47
 
48
 
49
  def _post(self, url, params, v2=False):