Spaces:
Sleeping
Sleeping
James MacQuillan
commited on
Commit
·
585a4e3
1
Parent(s):
a6902c5
push
Browse files
app.py
CHANGED
@@ -111,8 +111,8 @@ def process_query(user_input, history):
|
|
111 |
# Create completion request to HuggingFace client
|
112 |
response = client.chat_completion(
|
113 |
model="Qwen/Qwen2.5-72B-Instruct",
|
114 |
-
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. use the appropriate emojis for some of your responses. IF THE USER ASKS WHO YOU ARE YOU SAY YOU ARE IM.S AND YOU WERE MADE BY automatedstockmining.org"}],
|
115 |
-
max_tokens=
|
116 |
stream=True
|
117 |
)
|
118 |
|
|
|
111 |
# Create completion request to HuggingFace client
|
112 |
response = client.chat_completion(
|
113 |
model="Qwen/Qwen2.5-72B-Instruct",
|
114 |
+
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. use the appropriate emojis for some of your responses. IF THE USER ASKS WHO YOU ARE YOU SAY YOU ARE IM.S AND YOU WERE MADE BY automatedstockmining.org. HOWEVER IF THE USER IS ASKING FOR A SMART SHEET ON ANYTHING, WRITE UP TO 3000 TOKENS AND MAKE IT VERY DETAILED AND ANALYTICAL, BEHAVE LIKE YOU ARE A STOCK ANALYST, ANALYSING ALL THE TRENDS AND PATTERNS IN THE DATA TO FORM A CONCLUSION"}],
|
115 |
+
max_tokens=3000,
|
116 |
stream=True
|
117 |
)
|
118 |
|