Spaces:
Build error
Build error
Update app.py
Browse files
app.py
CHANGED
|
@@ -4,6 +4,7 @@ import json
|
|
| 4 |
import os
|
| 5 |
import time
|
| 6 |
import numpy as np
|
|
|
|
| 7 |
import tempfile
|
| 8 |
from io import BytesIO
|
| 9 |
from md2pdf.core import md2pdf
|
|
@@ -313,10 +314,16 @@ def process_transcript(transcript):
|
|
| 313 |
|
| 314 |
# Enhanced structure for better organization
|
| 315 |
structure = {
|
|
|
|
| 316 |
"Key Insights": "",
|
| 317 |
"Action Items": "",
|
| 318 |
"Questions & Considerations": "",
|
| 319 |
-
"
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 320 |
}
|
| 321 |
|
| 322 |
prompt = f"""
|
|
@@ -404,11 +411,24 @@ def process_transcript(transcript):
|
|
| 404 |
notes_content = ""
|
| 405 |
|
| 406 |
section_markers = {
|
|
|
|
|
|
|
|
|
|
| 407 |
"## Key Insights": "Key Insights",
|
|
|
|
| 408 |
"## Action Items": "Action Items",
|
|
|
|
| 409 |
"## Questions & Considerations": "Questions & Considerations",
|
|
|
|
|
|
|
|
|
|
|
|
|
| 410 |
"## Main Discussion Points": "Main Discussion Points",
|
| 411 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
| 412 |
}
|
| 413 |
|
| 414 |
for chunk in response:
|
|
|
|
| 4 |
import os
|
| 5 |
import time
|
| 6 |
import numpy as np
|
| 7 |
+
|
| 8 |
import tempfile
|
| 9 |
from io import BytesIO
|
| 10 |
from md2pdf.core import md2pdf
|
|
|
|
| 314 |
|
| 315 |
# Enhanced structure for better organization
|
| 316 |
structure = {
|
| 317 |
+
"Executive Summary": "",
|
| 318 |
"Key Insights": "",
|
| 319 |
"Action Items": "",
|
| 320 |
"Questions & Considerations": "",
|
| 321 |
+
"Detailed Analysis": {
|
| 322 |
+
"Context & Background": "",
|
| 323 |
+
"Main Discussion Points": "",
|
| 324 |
+
"Supporting Evidence": "",
|
| 325 |
+
"Conclusions & Recommendations": ""
|
| 326 |
+
}
|
| 327 |
}
|
| 328 |
|
| 329 |
prompt = f"""
|
|
|
|
| 411 |
notes_content = ""
|
| 412 |
|
| 413 |
section_markers = {
|
| 414 |
+
"# Executive Summary": "Executive Summary",
|
| 415 |
+
"## Executive Summary": "Executive Summary",
|
| 416 |
+
"# Key Insights": "Key Insights",
|
| 417 |
"## Key Insights": "Key Insights",
|
| 418 |
+
"# Action Items": "Action Items",
|
| 419 |
"## Action Items": "Action Items",
|
| 420 |
+
"# Questions & Considerations": "Questions & Considerations",
|
| 421 |
"## Questions & Considerations": "Questions & Considerations",
|
| 422 |
+
"# Detailed Analysis": "Detailed Analysis",
|
| 423 |
+
"## Detailed Analysis": "Detailed Analysis",
|
| 424 |
+
"## Context & Background": "Context & Background",
|
| 425 |
+
"### Context & Background": "Context & Background",
|
| 426 |
"## Main Discussion Points": "Main Discussion Points",
|
| 427 |
+
"### Main Discussion Points": "Main Discussion Points",
|
| 428 |
+
"## Supporting Evidence": "Supporting Evidence",
|
| 429 |
+
"### Supporting Evidence": "Supporting Evidence",
|
| 430 |
+
"## Conclusions & Recommendations": "Conclusions & Recommendations",
|
| 431 |
+
"### Conclusions & Recommendations": "Conclusions & Recommendations"
|
| 432 |
}
|
| 433 |
|
| 434 |
for chunk in response:
|