Spaces:
Sleeping
Sleeping
adding direct token reference
Browse files
app.py
CHANGED
|
@@ -30,7 +30,7 @@ def getTopChunks(query, chunkEmbeddings, textChunks):
|
|
| 30 |
# cleanedChunks = preprocessText(finlitText)
|
| 31 |
# chunkEmbeddings = createEmbeddings(cleanedChunks)
|
| 32 |
|
| 33 |
-
client = InferenceClient("deepseek-ai/DeepSeek-R1")
|
| 34 |
|
| 35 |
def respond(message, history):
|
| 36 |
messages = [{"role": "system",
|
|
|
|
| 30 |
# cleanedChunks = preprocessText(finlitText)
|
| 31 |
# chunkEmbeddings = createEmbeddings(cleanedChunks)
|
| 32 |
|
| 33 |
+
client = InferenceClient("deepseek-ai/DeepSeek-R1", token = os.environ.get("SF_TOKEN"))
|
| 34 |
|
| 35 |
def respond(message, history):
|
| 36 |
messages = [{"role": "system",
|