Spaces:
Runtime error
Runtime error
RohitGandikota
commited on
Commit
Β·
e0306f8
1
Parent(s):
d8b7eec
testing inference on CPU
Browse files
app.py
CHANGED
|
@@ -191,7 +191,7 @@ class Demo:
|
|
| 191 |
self.train_button.click(self.train, inputs = [
|
| 192 |
self.target_concept,
|
| 193 |
self.positive_prompt,
|
| 194 |
-
|
| 195 |
self.rank,
|
| 196 |
self.iterations_input,
|
| 197 |
self.lr_input
|
|
@@ -234,7 +234,7 @@ class Demo:
|
|
| 234 |
# model_map['Custom'] = save_path
|
| 235 |
|
| 236 |
# return [gr.update(interactive=True, value='Train'), gr.update(value='Done Training! \n Try your custom model in the "Test" tab'), save_path, gr.Dropdown.update(choices=list(model_map.keys()), value='Custom')]
|
| 237 |
-
return None
|
| 238 |
|
| 239 |
def inference(self, prompt, seed, start_noise, scale, model_name, pbar = gr.Progress(track_tqdm=True)):
|
| 240 |
|
|
|
|
| 191 |
self.train_button.click(self.train, inputs = [
|
| 192 |
self.target_concept,
|
| 193 |
self.positive_prompt,
|
| 194 |
+
self.negative_prompt,
|
| 195 |
self.rank,
|
| 196 |
self.iterations_input,
|
| 197 |
self.lr_input
|
|
|
|
| 234 |
# model_map['Custom'] = save_path
|
| 235 |
|
| 236 |
# return [gr.update(interactive=True, value='Train'), gr.update(value='Done Training! \n Try your custom model in the "Test" tab'), save_path, gr.Dropdown.update(choices=list(model_map.keys()), value='Custom')]
|
| 237 |
+
return [None, None, None, None]
|
| 238 |
|
| 239 |
def inference(self, prompt, seed, start_noise, scale, model_name, pbar = gr.Progress(track_tqdm=True)):
|
| 240 |
|