pharmapsychotic commited on
Commit
fdaad23
1 Parent(s): c12311b

Well using api_name didn't work for some reason. Revert to using fn_index

Browse files
Files changed (1) hide show
  1. app.py +1 -1
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", api_name="image-to-prompt")[0]
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 {