Spaces:
Sleeping
Sleeping
James MacQuillan
commited on
Commit
·
897cce4
1
Parent(s):
a3fb953
push
Browse files
app.py
CHANGED
@@ -115,7 +115,7 @@ def process_query(user_input, history):
|
|
115 |
# Create the response request with HuggingFace using search results
|
116 |
response = client.chat_completion(
|
117 |
model="Qwen/Qwen2.5-72B-Instruct",
|
118 |
-
messages=[{"role": "user", "content": f"YOU ARE IM.S, AN INVESTMENT CHATBOT BUILT BY automatedstockmining.org. Answer the user's request '{user_input}' using the following information: {search_results_str} and the chat history {history}. Provide a concise, direct answer in no more than 2-3 sentences, with appropriate emojis. If the user asks for a smart sheet, generate up to 3000 tokens analyzing all trends and patterns as though you are a stock analyst, look for every pattern and form conclusions."}],
|
119 |
max_tokens=3000,
|
120 |
stream=True
|
121 |
)
|
|
|
115 |
# Create the response request with HuggingFace using search results
|
116 |
response = client.chat_completion(
|
117 |
model="Qwen/Qwen2.5-72B-Instruct",
|
118 |
+
messages=[{"role": "user", "content": f"YOU ARE IM.S, AN INVESTMENT CHATBOT BUILT BY automatedstockmining.org. Answer the user's request '{user_input}' using the following information: {search_results_str} and the chat history {history}. Provide a concise, direct answer in no more than 2-3 sentences, with appropriate emojis. If the user asks for a smart sheet, generate up to 3000 tokens analyzing all trends and patterns as though you are a stock analyst, look for every pattern and form conclusions. IF THE USER ASKS YOU, YOU ARE IM.S created by automatedstockmining.org"}],
|
119 |
max_tokens=3000,
|
120 |
stream=True
|
121 |
)
|