amir22010 commited on
Commit
b745016
·
1 Parent(s): 0e30435

removed audio

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -65,8 +65,7 @@ llm = Llama.from_pretrained(
65
  )
66
 
67
  #marketing prompt
68
- marketing_email_prompt = """Your go-to Email Marketing Guru - I'm here to help you craft short and concise compelling campaigns, boost conversions, and take your business to the next level.
69
- Below is a product and description, please write a marketing email for this product.
70
 
71
  ### Product:
72
  {}
@@ -99,9 +98,10 @@ async def greet(product,description):
99
  else:
100
  output = llm.create_chat_completion(
101
  messages=[
 
102
  {"role": "user", "content": user_reques},
103
  ],
104
- max_tokens=1024,
105
  temperature=0.7,
106
  stream=True
107
  )
 
65
  )
66
 
67
  #marketing prompt
68
+ marketing_email_prompt = """Below is a product and description, please write a marketing email for this product.
 
69
 
70
  ### Product:
71
  {}
 
98
  else:
99
  output = llm.create_chat_completion(
100
  messages=[
101
+ {"role":"system","content": "Your go-to Email Marketing Guru - I'm here to help you craft short and concise compelling campaigns, boost conversions, and take your business to the next level."},
102
  {"role": "user", "content": user_reques},
103
  ],
104
+ max_tokens=2048,
105
  temperature=0.7,
106
  stream=True
107
  )