Spaces:
Runtime error
Runtime error
Update to qwen:0.5b
Browse files- app/rag.py +1 -1
- start_service.sh +1 -1
app/rag.py
CHANGED
@@ -15,7 +15,7 @@ class ChatPDF:
|
|
15 |
chain = None
|
16 |
|
17 |
def __init__(self):
|
18 |
-
self.model = ChatOllama(model="qwen:
|
19 |
self.text_splitter = RecursiveCharacterTextSplitter(chunk_size=256, chunk_overlap=16)
|
20 |
self.prompt = PromptTemplate.from_template(
|
21 |
"""
|
|
|
15 |
chain = None
|
16 |
|
17 |
def __init__(self):
|
18 |
+
self.model = ChatOllama(model="qwen:0.5b")
|
19 |
self.text_splitter = RecursiveCharacterTextSplitter(chunk_size=256, chunk_overlap=16)
|
20 |
self.prompt = PromptTemplate.from_template(
|
21 |
"""
|
start_service.sh
CHANGED
@@ -7,7 +7,7 @@ ollama serve &
|
|
7 |
sleep 5
|
8 |
|
9 |
# Pull and run <YOUR_MODEL_NAME>
|
10 |
-
ollama pull qwen:
|
11 |
|
12 |
#
|
13 |
fastapi run /code/app/main.py --port 7860
|
|
|
7 |
sleep 5
|
8 |
|
9 |
# Pull and run <YOUR_MODEL_NAME>
|
10 |
+
ollama pull qwen:0.5b
|
11 |
|
12 |
#
|
13 |
fastapi run /code/app/main.py --port 7860
|