cedpsam commited on
Commit
a84048e
·
verified ·
1 Parent(s): 4c83249

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -1,5 +1,5 @@
1
  import gradio_client
2
- from gradio_client import Client, file,handle_file
3
  from urllib.parse import quote
4
  from huggingface_hub import InferenceClient
5
  import numpy as np
@@ -23,7 +23,7 @@ def pollinations_url_seedless(a, width=512, height=512):
23
 
24
  def interrogate(img):
25
  result = grclient.predict(
26
- input_image=handle_file(img),
27
 
28
  custom_prompt="Analyze this image like an art critic would with information about its composition, style, symbolism, the use of color, light, any artistic movement it might belong to, etc. Keep it very long.",
29
  api_name="/stream_chat"
 
1
  import gradio_client
2
+ from gradio_client import Client, file
3
  from urllib.parse import quote
4
  from huggingface_hub import InferenceClient
5
  import numpy as np
 
23
 
24
  def interrogate(img):
25
  result = grclient.predict(
26
+ input_image=file(img),
27
 
28
  custom_prompt="Analyze this image like an art critic would with information about its composition, style, symbolism, the use of color, light, any artistic movement it might belong to, etc. Keep it very long.",
29
  api_name="/stream_chat"