Spaces:
Sleeping
Sleeping
| 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) | |