Stefan Benten commited on
Commit
cc1857b
1 Parent(s): 3bebd7a

app.py: change entrypoints for the API

Browse files
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):