Update links
Browse files
app.py
CHANGED
@@ -9,11 +9,11 @@ from gradio_client.client import Job
|
|
9 |
|
10 |
DESCRIPTION = "# Comparing image captioning models"
|
11 |
ORIGINAL_SPACE_INFO = """\
|
12 |
-
- [GIT-large fine-tuned on COCO](https://huggingface.co/spaces/
|
13 |
-
- [BLIP-large](https://huggingface.co/spaces/
|
14 |
- [BLIP-2 OPT 6.7B](https://huggingface.co/spaces/merve/BLIP2-with-transformers)
|
15 |
-
- [BLIP-2 T5-XXL](https://huggingface.co/spaces/hysts/BLIP2
|
16 |
-
- [InstructBLIP](https://huggingface.co/spaces/
|
17 |
- [Fuyu-8B](https://huggingface.co/spaces/adept/fuyu-8b-demo)
|
18 |
"""
|
19 |
|
@@ -65,7 +65,7 @@ def generate_caption_blip2_opt(image_path: str, return_job: bool = False) -> str
|
|
65 |
|
66 |
def generate_caption_blip2_t5xxl(image_path: str, return_job: bool = False) -> str | Job:
|
67 |
try:
|
68 |
-
client = Client("hysts/BLIP2
|
69 |
fn = client.submit if return_job else client.predict
|
70 |
return fn(
|
71 |
image_path,
|
|
|
9 |
|
10 |
DESCRIPTION = "# Comparing image captioning models"
|
11 |
ORIGINAL_SPACE_INFO = """\
|
12 |
+
- [GIT-large fine-tuned on COCO](https://huggingface.co/spaces/hysts/image-captioning-with-git)
|
13 |
+
- [BLIP-large](https://huggingface.co/spaces/hysts/image-captioning-with-blip)
|
14 |
- [BLIP-2 OPT 6.7B](https://huggingface.co/spaces/merve/BLIP2-with-transformers)
|
15 |
+
- [BLIP-2 T5-XXL](https://huggingface.co/spaces/hysts/BLIP2)
|
16 |
+
- [InstructBLIP](https://huggingface.co/spaces/hysts/InstructBLIP)
|
17 |
- [Fuyu-8B](https://huggingface.co/spaces/adept/fuyu-8b-demo)
|
18 |
"""
|
19 |
|
|
|
65 |
|
66 |
def generate_caption_blip2_t5xxl(image_path: str, return_job: bool = False) -> str | Job:
|
67 |
try:
|
68 |
+
client = Client("hysts/BLIP2")
|
69 |
fn = client.submit if return_job else client.predict
|
70 |
return fn(
|
71 |
image_path,
|