Spaces:
Running
Running
Commit
·
fdaad23
1
Parent(s):
c12311b
Well using api_name didn't work for some reason. Revert to using fn_index
Browse files
app.py
CHANGED
@@ -11,7 +11,7 @@ def get_images(prompt):
|
|
11 |
return sd_output, gr.update(visible=True), gr.update(visible=True), gr.update(visible=True)
|
12 |
|
13 |
def get_prompts(uploaded_image):
|
14 |
-
return img_to_text(uploaded_image, "ViT-L (best for Stable Diffusion 1.*)", "best",
|
15 |
|
16 |
css = '''
|
17 |
.animate-spin {
|
|
|
11 |
return sd_output, gr.update(visible=True), gr.update(visible=True), gr.update(visible=True)
|
12 |
|
13 |
def get_prompts(uploaded_image):
|
14 |
+
return img_to_text(uploaded_image, "ViT-L (best for Stable Diffusion 1.*)", "best", fn_index=2)[0]
|
15 |
|
16 |
css = '''
|
17 |
.animate-spin {
|