Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -1,5 +1,5 @@
|
|
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,7 +23,7 @@ def pollinations_url_seedless(a, width=512, height=512):
|
|
23 |
|
24 |
def interrogate(img):
|
25 |
result = grclient.predict(
|
26 |
-
input_image=
|
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"
|