vsrinivas commited on
Commit
b7cb604
1 Parent(s): d53ce16

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +6 -4
app.py CHANGED
@@ -131,16 +131,18 @@ def summarize(meeting_texts=meeting_texts):
131
  meeting_date_time = str(datetime.now().strftime("%Y-%m-%d %H:%M:%S"))
132
  meeting_texts = meeting_date_time + '\n' + mt
133
 
134
- meeting_conversation_processed ='\n'.join(mt)
135
  # print("M:", session_conversation_processed)
136
 
137
  minutes_of_meeting = ""
138
  for chunk in AI71(AI71_API_KEY.strip()).chat.completions.create(
139
  model="tiiuae/falcon-180b-chat",
140
  messages=[
141
- {"role": "system", "content": """You are an expereiced Secretary who can summarize meeting discussions into minutes of meeting.
142
- Summarize the meetings discussions provided as Speakerwise conversation. Ensure to mention the title as 'Minutes of Meeting held on {meeting_date_time} and present the summary with better viewing format and title in bold letters"""},
143
- {"role": "user", "content": meeting_conversation_processed},
 
 
144
  ],
145
  stream=True,
146
  ):
 
131
  meeting_date_time = str(datetime.now().strftime("%Y-%m-%d %H:%M:%S"))
132
  meeting_texts = meeting_date_time + '\n' + mt
133
 
134
+ # meeting_conversation_processed ='\n'.join(mt)
135
  # print("M:", session_conversation_processed)
136
 
137
  minutes_of_meeting = ""
138
  for chunk in AI71(AI71_API_KEY.strip()).chat.completions.create(
139
  model="tiiuae/falcon-180b-chat",
140
  messages=[
141
+ {"role": "system", "content": f"""You are an expereiced Secretary who can summarize meeting discussions into minutes of meeting.
142
+ Summarize the meetings discussions provided as Speakerwise conversation.
143
+ Strictly consider only the context given in user content {meeting_texts} for summarization.
144
+ Ensure to mention the title as 'Minutes of Meeting held on {meeting_date_time} and present the summary with better viewing format and title in bold letters"""},
145
+ {"role": "user", "content": meeting_texts},
146
  ],
147
  stream=True,
148
  ):