Spaces:
Paused
Paused
Update app.py
Browse files
app.py
CHANGED
@@ -19,7 +19,7 @@ def get_images(prompt):
|
|
19 |
return img_results[0]
|
20 |
|
21 |
def get_new_prompt(img):
|
22 |
-
interrogate = clip_interrogator_2(img, '
|
23 |
#print(interrogate)
|
24 |
return interrogate
|
25 |
|
@@ -32,5 +32,5 @@ def infer(prompt):
|
|
32 |
|
33 |
prompt_input = gr.Textbox(lines=4, label="Input v1.x Stable Diffusion prompt")
|
34 |
prompt_output = gr.Textbox(lines=4, label="Converted v2.x Stable Diffusion prompt")
|
35 |
-
|
36 |
-
gr.Interface(fn=infer, inputs=[prompt_input], outputs=[prompt_output],title=title,description=description).queue(max_size=10).launch(enable_queue=True)
|
|
|
19 |
return img_results[0]
|
20 |
|
21 |
def get_new_prompt(img):
|
22 |
+
interrogate = clip_interrogator_2(img, 'fast', 12, api_name="clipi2")
|
23 |
#print(interrogate)
|
24 |
return interrogate
|
25 |
|
|
|
32 |
|
33 |
prompt_input = gr.Textbox(lines=4, label="Input v1.x Stable Diffusion prompt")
|
34 |
prompt_output = gr.Textbox(lines=4, label="Converted v2.x Stable Diffusion prompt")
|
35 |
+
examples=["girl with steampunk weapons and uniform, serious, finely detailed, made by wlop, boichi, ilya kuvshinov, full body portrait, illustration, grass, sunny, sky, anime, side view, perfect anime face, detailed face, zoomed out, smooth, "]
|
36 |
+
gr.Interface(fn=infer, inputs=[prompt_input], outputs=[prompt_output],title=title,description=description,examples=examples).queue(max_size=10).launch(enable_queue=True)
|