You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+12
Original file line number
Diff line number
Diff line change
@@ -57,6 +57,18 @@ Choose the task among:
57
57
-*image-generation-pollinations*: stable diffusion, use Pollinations AI API; if you choose 'image-generation-pollinations', you do not need to specify anything else apart from the task - **MULTILINGUAL**
58
58
-*image-classification*: classify an image, supports every image-classification model on HF Hub - **ENGLISH ONLY**
59
59
-*image-to-text*: describe an image, supports every image-to-text model on HF Hub - **ENGLISH ONLY**
60
+
-*image-retrieval-search*: search an image database uploading a folder as database input. The folder should have the following structure:
61
+
62
+
```
63
+
./
64
+
├── test/
65
+
| ├── label1/
66
+
| └── label2/
67
+
└── train/
68
+
├── label1/
69
+
└── label2/
70
+
```
71
+
You can query the database starting from your own pictures.
60
72
61
73
### 6. Go to `localhost:7860` and start using your assistant
info="Directory where all your pdfs of interest are stored (only available with 'retrieval-text-generation')",
44
+
info="Directory where all your pdfs or images (.jpg, .jpeg, .png) of interest are stored (only available with 'retrieval-text-generation' for pdfs and 'retrieval-image-search' for images)",
Copy file name to clipboardExpand all lines: docker/text_summarization.py
+3-1
Original file line number
Diff line number
Diff line change
@@ -5,6 +5,7 @@
5
5
fromutilsimportmerge_pdfs
6
6
importgradioasgr
7
7
importtime
8
+
importtorch
8
9
9
10
histr= [[None, "Hi, I'm **everything-ai-summarization**🤖.\nI'm here to assist you and let you summarize _your_ texts and _your_ pdfs!\nCheck [my website](https://astrabert.github.io/everything-ai/) for troubleshooting and documentation reference\nHave fun!😊"]]
0 commit comments