Update app.py
Browse files
app.py
CHANGED
|
@@ -367,6 +367,7 @@ Meeting Notes:
|
|
| 367 |
for _, row in df.iterrows():
|
| 368 |
llm_input = self.prepare_llm_input(row['Document_Text'], topics)
|
| 369 |
response = self.prompt_response_from_hf_llm(llm_input)
|
|
|
|
| 370 |
notes = self.extract_text(response)
|
| 371 |
results.append({'Document_Text': row['Document_Text'], 'Topic_Summary': notes})
|
| 372 |
return pd.concat([df.reset_index(drop=True), pd.DataFrame(results)['Topic_Summary']], axis=1)
|
|
@@ -417,6 +418,7 @@ def extract_excerpts(processed_df):
|
|
| 417 |
excerpts = re.findall(r'- "([^"]+)"', sec)
|
| 418 |
for excerpt in excerpts:
|
| 419 |
rows.append({'Document_Text': r['Document_Text'], 'Topic_Summary': r['Topic_Summary'], 'Excerpt': excerpt, 'Topic': topic})
|
|
|
|
| 420 |
return pd.DataFrame(rows)
|
| 421 |
|
| 422 |
# ---------------------------------------------------------------------------------------
|
|
|
|
| 367 |
for _, row in df.iterrows():
|
| 368 |
llm_input = self.prepare_llm_input(row['Document_Text'], topics)
|
| 369 |
response = self.prompt_response_from_hf_llm(llm_input)
|
| 370 |
+
print("AI Response:", response) # Debugging: print the AI response
|
| 371 |
notes = self.extract_text(response)
|
| 372 |
results.append({'Document_Text': row['Document_Text'], 'Topic_Summary': notes})
|
| 373 |
return pd.concat([df.reset_index(drop=True), pd.DataFrame(results)['Topic_Summary']], axis=1)
|
|
|
|
| 418 |
excerpts = re.findall(r'- "([^"]+)"', sec)
|
| 419 |
for excerpt in excerpts:
|
| 420 |
rows.append({'Document_Text': r['Document_Text'], 'Topic_Summary': r['Topic_Summary'], 'Excerpt': excerpt, 'Topic': topic})
|
| 421 |
+
print("Extracted Rows:", rows) # Debugging: print extracted rows
|
| 422 |
return pd.DataFrame(rows)
|
| 423 |
|
| 424 |
# ---------------------------------------------------------------------------------------
|