Spaces:
Runtime error
Runtime error
RohitGandikota
commited on
Commit
β’
ada1a98
1
Parent(s):
4a6758e
Update app.py
Browse files
app.py
CHANGED
@@ -263,7 +263,7 @@ class Demo:
|
|
263 |
torch.cuda.empty_cache()
|
264 |
model_map['Custom Slider'] = f'models/{save_name}'
|
265 |
|
266 |
-
return [gr.update(interactive=True, value='Train'), gr.update(value='Done Training! \n Try your custom slider in the "Test" tab'), f'models/{save_name}', gr.
|
267 |
|
268 |
|
269 |
def inference(self, prompt, seed, start_noise, scale, model_name, pbar = gr.Progress(track_tqdm=True)):
|
|
|
263 |
torch.cuda.empty_cache()
|
264 |
model_map['Custom Slider'] = f'models/{save_name}'
|
265 |
|
266 |
+
return [gr.update(interactive=True, value='Train'), gr.update(value='Done Training! \n Try your custom slider in the "Test" tab'), f'models/{save_name}', gr.update(choices=list(model_map.keys()), value='Custom Slider')]
|
267 |
|
268 |
|
269 |
def inference(self, prompt, seed, start_noise, scale, model_name, pbar = gr.Progress(track_tqdm=True)):
|