Spaces:
Running
Running
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 <stefan-prodia@users.noreply.huggingface.co>
app.py
CHANGED
@@ -16,15 +16,15 @@ class Prodia:
|
|
16 |
}
|
17 |
|
18 |
def generate(self, params):
|
19 |
-
response = self._post(f"{self.base}/
|
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):
|