Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
|
@@ -10,6 +10,12 @@ except ImportError as e:
|
|
| 10 |
print("🔧 Make sure you're in the gemmaembeddings conda environment")
|
| 11 |
print("📦 Required packages: torch, sentence-transformers, chromadb")
|
| 12 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 13 |
class EmbeddingGemmaPrompts:
|
| 14 |
"""
|
| 15 |
Optimized prompt templates for Google's EmbeddingGemma model.
|
|
|
|
| 10 |
print("🔧 Make sure you're in the gemmaembeddings conda environment")
|
| 11 |
print("📦 Required packages: torch, sentence-transformers, chromadb")
|
| 12 |
|
| 13 |
+
# Global variables for model and collection (initialized lazily)
|
| 14 |
+
model = None
|
| 15 |
+
collection = None
|
| 16 |
+
device = None
|
| 17 |
+
config = Config()
|
| 18 |
+
|
| 19 |
class EmbeddingGemmaPrompts:
|
| 20 |
"""
|
| 21 |
Optimized prompt templates for Google's EmbeddingGemma model.
|