Update app.py
Browse files
app.py
CHANGED
@@ -37,7 +37,7 @@ with open('ai_chatbot_data.json', 'r') as file:
|
|
37 |
json_data = json.load(file)
|
38 |
|
39 |
# Updated prompt template for Bitcoin trading
|
40 |
-
template = "
|
41 |
prompt = PromptTemplate(template=template, input_variables=["message", "sentiment", "history", "date_time", "bitcoin_price", "result", "json_data"])
|
42 |
conversation_history = []
|
43 |
|
|
|
37 |
json_data = json.load(file)
|
38 |
|
39 |
# Updated prompt template for Bitcoin trading
|
40 |
+
template = "🌟 **Analysis Report for BTC Trading & Prediction** 🌟\n\n📩 **User Message:**\n{message}\n\n💰 **BTC Price Now** 💹\nCurrent Price: ${bitcoin_price}\nTime: {date_time}\n\n📊 **BTC Historical Data** 📈\nCheck the historical data to analyze price trends.\nTrading Data from 01/01/2024 to {date_time}:\n{result}\n\n🗣️ **Current Conversation Overview** 💬\nRefer to user interactions for context.\nUser Interaction:\n{history}\n\n🤔 **User Sentiment Analysis** 📝\nAnalyze user sentiment for market insights.\nUser Sentiment: {sentiment}\n\n💻 **System Data** 📊\nUtilize system insights for decision-making.\nSystem Insights:\n{json_data}\n\n💡 **Response Recommendations** 💬\nBased on the data provided, suggest trading strategies or predictions.\nAI System Data: {json_data}\n\nResponse:"
|
41 |
prompt = PromptTemplate(template=template, input_variables=["message", "sentiment", "history", "date_time", "bitcoin_price", "result", "json_data"])
|
42 |
conversation_history = []
|
43 |
|