Update app.py
Browse files
app.py
CHANGED
@@ -29,6 +29,11 @@ def generate(prompts):
|
|
29 |
images = generator(list(prompts)).images
|
30 |
return [images]
|
31 |
|
|
|
|
|
|
|
|
|
|
|
32 |
with gr.Blocks() as demo:
|
33 |
gr.HTML(
|
34 |
|
|
|
29 |
images = generator(list(prompts)).images
|
30 |
return [images]
|
31 |
|
32 |
+
def set_model(current_model_index):
|
33 |
+
global current_model
|
34 |
+
current_model = models[current_model_index]
|
35 |
+
return gr.update(value=f"{current_model['name']}")
|
36 |
+
|
37 |
with gr.Blocks() as demo:
|
38 |
gr.HTML(
|
39 |
|