dreamdrop-art commited on
Commit
b789425
1 Parent(s): 83bec0e

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -4
app.py CHANGED
@@ -71,15 +71,15 @@ class Prodia:
71
  }
72
 
73
  def generate(self, params):
74
- response = self._post(f"{self.base}/sd/generate", params)
75
  return response.json()
76
 
77
  def transform(self, params):
78
- response = self._post(f"{self.base}/sd/transform", params)
79
  return response.json()
80
 
81
  def controlnet(self, params):
82
- response = self._post(f"{self.base}/sd/controlnet", params)
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, value="absolutereality_v181.safetensors [3d9d4d2b]", show_label=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: