Commit
·
0aa5488
1
Parent(s):
9934ab5
More examples
Browse files
app.py
CHANGED
@@ -149,6 +149,22 @@ def main():
|
|
149 |
|
150 |
examples = gr.Examples(
|
151 |
[
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
152 |
[
|
153 |
"artoria_pendragon_(fate),solo",
|
154 |
"excalibur_(fate/stay_night),green_eyes,monochrome,blonde_hair",
|
@@ -156,7 +172,7 @@ def main():
|
|
156 |
5,
|
157 |
"",
|
158 |
"",
|
159 |
-
]
|
160 |
],
|
161 |
inputs=[
|
162 |
positive_tags,
|
@@ -167,6 +183,8 @@ def main():
|
|
167 |
api_key,
|
168 |
],
|
169 |
outputs=[similar_images],
|
|
|
|
|
170 |
)
|
171 |
|
172 |
find_btn.click(
|
|
|
149 |
|
150 |
examples = gr.Examples(
|
151 |
[
|
152 |
+
[
|
153 |
+
"marcille_donato",
|
154 |
+
"",
|
155 |
+
["General", "Sensitive"],
|
156 |
+
5,
|
157 |
+
"",
|
158 |
+
"",
|
159 |
+
],
|
160 |
+
[
|
161 |
+
"yellow_eyes,red_horns",
|
162 |
+
"",
|
163 |
+
["General", "Sensitive"],
|
164 |
+
5,
|
165 |
+
"",
|
166 |
+
"",
|
167 |
+
],
|
168 |
[
|
169 |
"artoria_pendragon_(fate),solo",
|
170 |
"excalibur_(fate/stay_night),green_eyes,monochrome,blonde_hair",
|
|
|
172 |
5,
|
173 |
"",
|
174 |
"",
|
175 |
+
],
|
176 |
],
|
177 |
inputs=[
|
178 |
positive_tags,
|
|
|
183 |
api_key,
|
184 |
],
|
185 |
outputs=[similar_images],
|
186 |
+
fn=predictor.predict,
|
187 |
+
run_on_click=True,
|
188 |
)
|
189 |
|
190 |
find_btn.click(
|