Update app.py
Browse files
app.py
CHANGED
@@ -29,12 +29,21 @@ def generate(prompts):
|
|
29 |
images = generator(list(prompts)).images
|
30 |
return [images]
|
31 |
|
32 |
-
|
33 |
-
|
34 |
-
|
35 |
-
|
36 |
-
|
37 |
-
|
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()
|