Spaces:
Runtime error
Runtime error
dreamdrop-art
commited on
Commit
•
b789425
1
Parent(s):
83bec0e
Update app.py
Browse files
app.py
CHANGED
@@ -71,15 +71,15 @@ class Prodia:
|
|
71 |
}
|
72 |
|
73 |
def generate(self, params):
|
74 |
-
response = self._post(f"{self.base}/
|
75 |
return response.json()
|
76 |
|
77 |
def transform(self, params):
|
78 |
-
response = self._post(f"{self.base}/
|
79 |
return response.json()
|
80 |
|
81 |
def controlnet(self, params):
|
82 |
-
response = self._post(f"{self.base}/
|
83 |
return response.json()
|
84 |
|
85 |
def get_job(self, job_id):
|
@@ -270,7 +270,7 @@ css = """
|
|
270 |
with gr.Blocks(css=css) as demo:
|
271 |
with gr.Row():
|
272 |
with gr.Column(scale=6):
|
273 |
-
model = gr.Dropdown(interactive=True,
|
274 |
label="Stable Diffusion Checkpoint", choices=prodia_client.list_models())
|
275 |
|
276 |
with gr.Tabs() as tabs:
|
|
|
71 |
}
|
72 |
|
73 |
def generate(self, params):
|
74 |
+
response = self._post(f"{self.base}/sdxl/generate", params)
|
75 |
return response.json()
|
76 |
|
77 |
def transform(self, params):
|
78 |
+
response = self._post(f"{self.base}/sdxl/transform", params)
|
79 |
return response.json()
|
80 |
|
81 |
def controlnet(self, params):
|
82 |
+
response = self._post(f"{self.base}/sdxl/controlnet", params)
|
83 |
return response.json()
|
84 |
|
85 |
def get_job(self, job_id):
|
|
|
270 |
with gr.Blocks(css=css) as demo:
|
271 |
with gr.Row():
|
272 |
with gr.Column(scale=6):
|
273 |
+
model = gr.Dropdown(interactive=True, show_label=True,
|
274 |
label="Stable Diffusion Checkpoint", choices=prodia_client.list_models())
|
275 |
|
276 |
with gr.Tabs() as tabs:
|