cold_email / backend.py
Raykarr's picture
First model version
18c7cc7
raw
history blame contribute delete
667 Bytes
import llm
import traceback
def collect_context_for_email(industry, rec_name, tone, context, details_type, name, designation, company_name =""):
try:
print("number of calls")
user_input = {
"industry": industry,
"recipient_name": rec_name,
"tone": tone,
"context": context,
"details_type": details_type,
"name": name,
"designation": designation,
"company_name": company_name
}
llm_output = llm.chat_with_groq(user_input)
return llm_output
except Exception as err:
traceback.print_exc()
print(err)