Update src/streamlit_app.py
Browse files- src/streamlit_app.py +1 -1
src/streamlit_app.py
CHANGED
|
@@ -122,7 +122,7 @@ clip_model = CLIPModel.from_pretrained("openai/clip-vit-large-patch14", cache_di
|
|
| 122 |
clip_model.eval()
|
| 123 |
clip_processor = CLIPProcessor.from_pretrained("openai/clip-vit-large-patch14", use_fast=True, cache_dir="/tmp/hf_cache")
|
| 124 |
|
| 125 |
-
text_model = SentenceTransformer('sentence-transformers/all-MiniLM-L6-v2', cache_folder="/tmp/sbert")
|
| 126 |
|
| 127 |
model_id = "google/gemma-3-4b-it"
|
| 128 |
model = Gemma3ForConditionalGeneration.from_pretrained(
|
|
|
|
| 122 |
clip_model.eval()
|
| 123 |
clip_processor = CLIPProcessor.from_pretrained("openai/clip-vit-large-patch14", use_fast=True, cache_dir="/tmp/hf_cache")
|
| 124 |
|
| 125 |
+
text_model = SentenceTransformer('sentence-transformers/all-MiniLM-L6-v2', cache_folder="/tmp/sbert", device="cpu")
|
| 126 |
|
| 127 |
model_id = "google/gemma-3-4b-it"
|
| 128 |
model = Gemma3ForConditionalGeneration.from_pretrained(
|