Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -72,7 +72,7 @@ async def greet(product,description):
|
|
72 |
response = client.chat.completions.create(model=guard_llm, messages=messages, temperature=0)
|
73 |
if response.choices[0].message.content != "not moderated":
|
74 |
a_list = "Sorry can't proceed for generate marketing email!. Your content needs to be moderated first.".split()
|
75 |
-
s = ""
|
76 |
for i in a_list:
|
77 |
s = s + i
|
78 |
yield s
|
@@ -83,7 +83,7 @@ async def greet(product,description):
|
|
83 |
"role": "system",
|
84 |
"content": "Your go-to Email Marketing Guru - I'm here to help you craft compelling campaigns, boost conversions, and take your business to the next level.",
|
85 |
},
|
86 |
-
{"role": "user", "content":
|
87 |
],
|
88 |
max_tokens=4096,
|
89 |
temperature=0.7,
|
|
|
72 |
response = client.chat.completions.create(model=guard_llm, messages=messages, temperature=0)
|
73 |
if response.choices[0].message.content != "not moderated":
|
74 |
a_list = "Sorry can't proceed for generate marketing email!. Your content needs to be moderated first.".split()
|
75 |
+
s = " "
|
76 |
for i in a_list:
|
77 |
s = s + i
|
78 |
yield s
|
|
|
83 |
"role": "system",
|
84 |
"content": "Your go-to Email Marketing Guru - I'm here to help you craft compelling campaigns, boost conversions, and take your business to the next level.",
|
85 |
},
|
86 |
+
{"role": "user", "content": user_reques},
|
87 |
],
|
88 |
max_tokens=4096,
|
89 |
temperature=0.7,
|