Dooratre commited on
Commit
874731d
·
verified ·
1 Parent(s): 8262f7f

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
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 = "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/>): {result}\n\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
 
@@ -143,7 +143,7 @@ if __name__ == "__main__":
143
  repo_id=repo_id,
144
  model_kwargs={
145
  "temperature": 0.5,
146
- "max_new_tokens": 512,
147
  "top_p": 0.5,
148
  "repetition_penalty": 1.2,
149
  "num_beams": 3,
 
37
  json_data = json.load(file)
38
 
39
  # Updated prompt template for Bitcoin trading
40
+ template = "Your Message: i will talk like andrew tate and use emojei and understand what i say answer with summary what i will to say and complete {history}\n\n\ 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/>): {result}\n\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
 
 
143
  repo_id=repo_id,
144
  model_kwargs={
145
  "temperature": 0.5,
146
+ "max_new_tokens": 256,
147
  "top_p": 0.5,
148
  "repetition_penalty": 1.2,
149
  "num_beams": 3,