Spaces:
Sleeping
Sleeping
Deepak Yadav
commited on
Commit
Β·
8d6933e
1
Parent(s):
008fd00
updated new version deepseek-r1
Browse files- README.md +2 -3
- services/llm.py +2 -2
README.md
CHANGED
@@ -3,11 +3,10 @@ title: LLM Based Custom Pdf Chatbot
|
|
3 |
emoji: π
|
4 |
colorFrom: indigo
|
5 |
colorTo: red
|
6 |
-
sdk:
|
7 |
-
sdk_version: 1.42.0
|
8 |
app_file: app.py
|
9 |
pinned: false
|
10 |
-
license:
|
11 |
---
|
12 |
|
13 |
Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference
|
|
|
3 |
emoji: π
|
4 |
colorFrom: indigo
|
5 |
colorTo: red
|
6 |
+
sdk: docker
|
|
|
7 |
app_file: app.py
|
8 |
pinned: false
|
9 |
+
license: apache-2.0
|
10 |
---
|
11 |
|
12 |
Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference
|
services/llm.py
CHANGED
@@ -23,7 +23,7 @@ def initialize_qa_chain(filepath, model_name, temperature, top_p, max_tokens):
|
|
23 |
# Configure the LLM with additional parameters
|
24 |
llm = OllamaLLM(
|
25 |
model=model_name,
|
26 |
-
base_url="https://deepak7376-ollama-server.hf.space",
|
27 |
temperature=temperature, # Controls randomness (0 = deterministic, 1 = max randomness)
|
28 |
max_tokens=max_tokens, # Limit the number of tokens in the output
|
29 |
top_p=top_p # Nucleus sampling for controlling diversity
|
@@ -71,7 +71,7 @@ def initialize_chain(model_name, temperature, top_p, max_tokens):
|
|
71 |
# Configure the LLM with additional parameters
|
72 |
llm = OllamaLLM(
|
73 |
model=model_name,
|
74 |
-
base_url="https://deepak7376-ollama-server.hf.space",
|
75 |
temperature=temperature, # Controls randomness (0 = deterministic, 1 = max randomness)
|
76 |
max_tokens=max_tokens, # Limit the number of tokens in the output
|
77 |
top_p=top_p # Nucleus sampling for controlling diversity
|
|
|
23 |
# Configure the LLM with additional parameters
|
24 |
llm = OllamaLLM(
|
25 |
model=model_name,
|
26 |
+
# base_url="https://deepak7376-ollama-server.hf.space",
|
27 |
temperature=temperature, # Controls randomness (0 = deterministic, 1 = max randomness)
|
28 |
max_tokens=max_tokens, # Limit the number of tokens in the output
|
29 |
top_p=top_p # Nucleus sampling for controlling diversity
|
|
|
71 |
# Configure the LLM with additional parameters
|
72 |
llm = OllamaLLM(
|
73 |
model=model_name,
|
74 |
+
# base_url="https://deepak7376-ollama-server.hf.space",
|
75 |
temperature=temperature, # Controls randomness (0 = deterministic, 1 = max randomness)
|
76 |
max_tokens=max_tokens, # Limit the number of tokens in the output
|
77 |
top_p=top_p # Nucleus sampling for controlling diversity
|