Spaces:
Sleeping
Sleeping
Juho Inkinen
commited on
Add links
Browse files
app.py
CHANGED
|
@@ -94,7 +94,7 @@ with gr.Blocks(title="VLM Caption & Annif Demo") as demo:
|
|
| 94 |
**How it works:**
|
| 95 |
1. Upload or take a photo in the input section below.
|
| 96 |
2. The image is sent to a Visual Language Model to generate a caption.
|
| 97 |
-
3. Annif suggests subjects based on the caption.
|
| 98 |
"""
|
| 99 |
)
|
| 100 |
with gr.Row():
|
|
@@ -119,7 +119,8 @@ with gr.Blocks(title="VLM Caption & Annif Demo") as demo:
|
|
| 119 |
],
|
| 120 |
value="yso",
|
| 121 |
label="Annif Project",
|
| 122 |
-
info="Select the vocabulary from where subject suggestions are drawn"
|
|
|
|
| 123 |
)
|
| 124 |
submit_btn = gr.Button("Submit", interactive=False)
|
| 125 |
clear_btn = gr.Button("Clear")
|
|
|
|
| 94 |
**How it works:**
|
| 95 |
1. Upload or take a photo in the input section below.
|
| 96 |
2. The image is sent to a Visual Language Model to generate a caption.
|
| 97 |
+
3. [Annif](https://github.com/NatLibFi/Annif) suggests subjects based on the caption via the API of [Finto AI](https://ai.finto.fi).
|
| 98 |
"""
|
| 99 |
)
|
| 100 |
with gr.Row():
|
|
|
|
| 119 |
],
|
| 120 |
value="yso",
|
| 121 |
label="Annif Project",
|
| 122 |
+
info="Select the vocabulary from where subject suggestions are drawn "\
|
| 123 |
+
"([YSO](https://finto.fi/yso/), [YKL](https://finto.fi/ykl/), [KAUNO](https://finto.fi/kauno/))",
|
| 124 |
)
|
| 125 |
submit_btn = gr.Button("Submit", interactive=False)
|
| 126 |
clear_btn = gr.Button("Clear")
|