Spaces:
Running
Running
arxivgpt kim
commited on
Update app.py
Browse files
app.py
CHANGED
@@ -4,14 +4,13 @@ from gradio_client import Client
|
|
4 |
def get_caption(image_in):
|
5 |
client = Client("https://vikhyatk-moondream1.hf.space/")
|
6 |
results = client.predict(
|
7 |
-
image_in,
|
8 |
-
"Describe the image",
|
9 |
api_name="/answer_question"
|
10 |
)
|
11 |
-
#
|
12 |
-
|
13 |
-
|
14 |
-
return caption
|
15 |
|
16 |
def get_lcm(prompt):
|
17 |
client = Client("https://latent-consistency-lcm-lora-for-sdxl.hf.space/")
|
|
|
4 |
def get_caption(image_in):
|
5 |
client = Client("https://vikhyatk-moondream1.hf.space/")
|
6 |
results = client.predict(
|
7 |
+
image_in,
|
8 |
+
"Describe the image",
|
9 |
api_name="/answer_question"
|
10 |
)
|
11 |
+
# API는 이미지에 대한 설명을 문자열로 바로 반환합니다.
|
12 |
+
print(results)
|
13 |
+
return results
|
|
|
14 |
|
15 |
def get_lcm(prompt):
|
16 |
client = Client("https://latent-consistency-lcm-lora-for-sdxl.hf.space/")
|