pikto commited on
Commit
c0a488d
1 Parent(s): ad2dbbc

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +16 -7
app.py CHANGED
@@ -29,12 +29,21 @@ def generate(prompts):
29
  images = generator(list(prompts)).images
30
  return [images]
31
 
32
- demo = gr.Interface(generate,
33
- "textbox",
34
- "image",
35
- batch=True,
36
- max_batch_size=4 # Set the batch size based on your CPU/GPU memory
37
- ).queue()
38
-
 
 
 
 
 
 
 
 
 
39
  if __name__ == "__main__":
40
  demo.launch()
 
29
  images = generator(list(prompts)).images
30
  return [images]
31
 
32
+ with gr.Blocks() as demo:
33
+ gr.HTML(
34
+
35
+ )
36
+
37
+ with gr.Row():
38
+ with gr.Row():
39
+ input_text = gr.Textbox(label="Input Prompt", placeholder="", lines=1)
40
+ # Model selection dropdown
41
+ model_name1 = gr.Dropdown(
42
+ label="Choose Model",
43
+ choices=[m["name"] for m in models],
44
+ type="index",
45
+ value=current_model["name"],
46
+ interactive=True,
47
+
48
  if __name__ == "__main__":
49
  demo.launch()