Update app.py
Browse files
app.py
CHANGED
@@ -36,7 +36,7 @@ with open('ai_chatbot_data.json', 'r') as file:
|
|
36 |
json_data = json.load(file)
|
37 |
|
38 |
# Updated prompt template for Bitcoin trading
|
39 |
-
template = "User Message: {message}\n\nUser Sentiment: {sentiment}\n\nConversation now: {history}\n\nDate and Time: {date_time}\n\nBitcoin Price: ${bitcoin_price}\n\nBTC price from 1 jan (DATE,OPEN,HIGH,LOW,CLOSE,ADJ CLOSE,VOLUME<br/>): {div_content}\n\nAI System Data: {json_data}\n\nResponse:"
|
40 |
prompt = PromptTemplate(template=template, input_variables=["message", "sentiment", "history", "date_time", "bitcoin_price", "div_content", "json_data"])
|
41 |
conversation_history = []
|
42 |
|
|
|
36 |
json_data = json.load(file)
|
37 |
|
38 |
# Updated prompt template for Bitcoin trading
|
39 |
+
template = "User Message: {message}\n\nUser Sentiment: {sentiment}\n\nConversation now: {history}\n\nDate and Time: {date_time}\n\nBitcoin Price: ${bitcoin_price}\n\nBTC price from 1 jan 2024 to {date_time} (DATE,OPEN,HIGH,LOW,CLOSE,ADJ CLOSE,VOLUME<br/>): {div_content}\n\nAI System Data: {json_data}\n\nResponse:"
|
40 |
prompt = PromptTemplate(template=template, input_variables=["message", "sentiment", "history", "date_time", "bitcoin_price", "div_content", "json_data"])
|
41 |
conversation_history = []
|
42 |
|