pikto commited on
Commit
16a4dc4
1 Parent(s): c7a2391

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +5 -0
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