Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -20,7 +20,7 @@ embeddings = HuggingFaceEmbeddings(model_name="all-MiniLM-L6-v2")
|
|
20 |
vectordb = FAISS.from_documents(split_docs, embeddings)
|
21 |
|
22 |
# Load model and create pipeline
|
23 |
-
model_name = "01-ai/Yi-Coder-9B
|
24 |
|
25 |
device = "cuda" if torch.cuda.is_available() else "cpu"
|
26 |
print(f"Using device: {device}")
|
|
|
20 |
vectordb = FAISS.from_documents(split_docs, embeddings)
|
21 |
|
22 |
# Load model and create pipeline
|
23 |
+
model_name = "01-ai/Yi-Coder-9B"
|
24 |
|
25 |
device = "cuda" if torch.cuda.is_available() else "cpu"
|
26 |
print(f"Using device: {device}")
|