Spaces:
Runtime error
Runtime error
Commit
·
b88450d
1
Parent(s):
b5f570d
small updates
Browse files- gradio_app.py +8 -4
gradio_app.py
CHANGED
@@ -59,6 +59,10 @@ def main_pipeline(
|
|
59 |
with gr.Blocks(css='style.css') as demo:
|
60 |
gr.Markdown(DESCRIPTION)
|
61 |
|
|
|
|
|
|
|
|
|
62 |
with gr.Row():
|
63 |
with gr.Column():
|
64 |
input_image = gr.Image(
|
@@ -84,7 +88,7 @@ with gr.Blocks(css='style.css') as demo:
|
|
84 |
label='Number of variations (used only for automatic proxy-words)',
|
85 |
minimum=2,
|
86 |
maximum=30,
|
87 |
-
value=
|
88 |
step=1
|
89 |
)
|
90 |
start_prompt_range = gr.Slider(
|
@@ -129,7 +133,7 @@ with gr.Blocks(css='style.css') as demo:
|
|
129 |
"hamster eating watermelon on the beach",
|
130 |
"watermelon",
|
131 |
"",
|
132 |
-
|
133 |
6,
|
134 |
16,
|
135 |
"",
|
@@ -141,7 +145,7 @@ with gr.Blocks(css='style.css') as demo:
|
|
141 |
"A decorated lamp in the livingroom",
|
142 |
"lamp",
|
143 |
"",
|
144 |
-
|
145 |
4,
|
146 |
14,
|
147 |
"livingroom",
|
@@ -153,7 +157,7 @@ with gr.Blocks(css='style.css') as demo:
|
|
153 |
"a snake in the field eats an apple",
|
154 |
"snake",
|
155 |
"",
|
156 |
-
|
157 |
7,
|
158 |
17,
|
159 |
"apple",
|
|
|
59 |
with gr.Blocks(css='style.css') as demo:
|
60 |
gr.Markdown(DESCRIPTION)
|
61 |
|
62 |
+
gr.HTML(
|
63 |
+
'''<center><a href="https://huggingface.co/spaces/orpatashnik/local-prompt-mixing?duplicate=true">
|
64 |
+
<img src="https://bit.ly/3gLdBN6" alt="Duplicate Space"></a>Duplicate the Space and run securely with your OpenAI API Key</center>''')
|
65 |
+
|
66 |
with gr.Row():
|
67 |
with gr.Column():
|
68 |
input_image = gr.Image(
|
|
|
88 |
label='Number of variations (used only for automatic proxy-words)',
|
89 |
minimum=2,
|
90 |
maximum=30,
|
91 |
+
value=7,
|
92 |
step=1
|
93 |
)
|
94 |
start_prompt_range = gr.Slider(
|
|
|
133 |
"hamster eating watermelon on the beach",
|
134 |
"watermelon",
|
135 |
"",
|
136 |
+
7,
|
137 |
6,
|
138 |
16,
|
139 |
"",
|
|
|
145 |
"A decorated lamp in the livingroom",
|
146 |
"lamp",
|
147 |
"",
|
148 |
+
7,
|
149 |
4,
|
150 |
14,
|
151 |
"livingroom",
|
|
|
157 |
"a snake in the field eats an apple",
|
158 |
"snake",
|
159 |
"",
|
160 |
+
7,
|
161 |
7,
|
162 |
17,
|
163 |
"apple",
|