montyanderson Stefan Benten commited on
Commit
4fff7a9
1 Parent(s): 3bebd7a

app.py: change entrypoints for the API (#1)

Browse files

- app.py: change entrypoints for the API (cc1857b3d86801c9abf64bb75a22e2f3b2386867)


Co-authored-by: Stefan Benten <[email protected]>

Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -16,15 +16,15 @@ class Prodia:
16
  }
17
 
18
  def generate(self, params):
19
- response = self._post(f"{self.base}/job", params)
20
  return response.json()
21
 
22
  def transform(self, params):
23
- response = self._post(f"{self.base}/transform", params)
24
  return response.json()
25
 
26
  def controlnet(self, params):
27
- response = self._post(f"{self.base}/controlnet", params)
28
  return response.json()
29
 
30
  def get_job(self, job_id):
 
16
  }
17
 
18
  def generate(self, params):
19
+ response = self._post(f"{self.base}/sd/generate", params)
20
  return response.json()
21
 
22
  def transform(self, params):
23
+ response = self._post(f"{self.base}/sd/transform", params)
24
  return response.json()
25
 
26
  def controlnet(self, params):
27
+ response = self._post(f"{self.base}/sd/controlnet", params)
28
  return response.json()
29
 
30
  def get_job(self, job_id):