Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -14,7 +14,7 @@ text_splitter = RecursiveCharacterTextSplitter(chunk_size=1000, chunk_overlap=20
|
|
14 |
|
15 |
models = ["deepseek-r1-distill-llama-70b", "llama-3.3-70b-versatile", "gemma2-9b-it"]
|
16 |
default_model = models[0]
|
17 |
-
model = ChatGroq(api_key="
|
18 |
|
19 |
chat_history = []
|
20 |
PRICE_PER_TOKEN = 0.00001
|
@@ -66,7 +66,7 @@ def summarize_chat(model):
|
|
66 |
def answer_query(query, file_path, summarize, tone, model_name, creativity, keywords, language, response_length, welcome_message, exclusion_words):
|
67 |
global chat_history
|
68 |
|
69 |
-
model = ChatGroq(api_key="
|
70 |
try:
|
71 |
|
72 |
if file_path:
|
|
|
14 |
|
15 |
models = ["deepseek-r1-distill-llama-70b", "llama-3.3-70b-versatile", "gemma2-9b-it"]
|
16 |
default_model = models[0]
|
17 |
+
model = ChatGroq(api_key="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", model_name=default_model)
|
18 |
|
19 |
chat_history = []
|
20 |
PRICE_PER_TOKEN = 0.00001
|
|
|
66 |
def answer_query(query, file_path, summarize, tone, model_name, creativity, keywords, language, response_length, welcome_message, exclusion_words):
|
67 |
global chat_history
|
68 |
|
69 |
+
model = ChatGroq(api_key="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", model_name=model_name)
|
70 |
try:
|
71 |
|
72 |
if file_path:
|