Spaces:
Build error
Build error
ian commited on
Commit ·
94cf162
1
Parent(s): df666e3
pre-download models
Browse files
app.py
CHANGED
|
@@ -1,5 +1,9 @@
|
|
|
|
|
| 1 |
from ktem.main import App
|
| 2 |
|
|
|
|
|
|
|
|
|
|
| 3 |
app = App()
|
| 4 |
demo = app.make()
|
| 5 |
demo.launch()
|
|
|
|
| 1 |
+
from fastembed import TextEmbedding
|
| 2 |
from ktem.main import App
|
| 3 |
|
| 4 |
+
# pre-download the model
|
| 5 |
+
TextEmbedding("BAAI/bge-base-en-v1.5")
|
| 6 |
+
|
| 7 |
app = App()
|
| 8 |
demo = app.make()
|
| 9 |
demo.launch()
|