noumanjavaid commited on
Commit
97c9b4f
Β·
verified Β·
1 Parent(s): ebc9357

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -23
app.py CHANGED
@@ -42,14 +42,14 @@ if 'transcription_error' not in st.session_state:
42
  # Set page configuration
43
  st.set_page_config(
44
  page_title="ScribeWizard πŸ§™β€β™‚οΈ",
45
- page_icon="πŸ§™β€β™‚οΈ",
 
46
  layout="wide",
47
  initial_sidebar_state="expanded"
48
  )
49
 
50
  # Fixed model selections
51
  LLM_MODEL = "deepseek-r1-distill-llama-70b"
52
- TRANSCRIPTION_MODEL = "distil-whisper-large-v3-en"
53
 
54
  # Configure retry parameters without backoff library
55
  MAX_RETRIES = 5
@@ -313,16 +313,10 @@ def process_transcript(transcript):
313
 
314
  # Enhanced structure for better organization
315
  structure = {
316
- "Executive Summary": "",
317
  "Key Insights": "",
318
  "Action Items": "",
319
  "Questions & Considerations": "",
320
- "Detailed Analysis": {
321
- "Context & Background": "",
322
- "Main Discussion Points": "",
323
- "Supporting Evidence": "",
324
- "Conclusions & Recommendations": ""
325
- }
326
  }
327
 
328
  prompt = f"""
@@ -410,24 +404,11 @@ def process_transcript(transcript):
410
  notes_content = ""
411
 
412
  section_markers = {
413
- "# Executive Summary": "Executive Summary",
414
- "## Executive Summary": "Executive Summary",
415
- "# Key Insights": "Key Insights",
416
  "## Key Insights": "Key Insights",
417
- "# Action Items": "Action Items",
418
  "## Action Items": "Action Items",
419
- "# Questions & Considerations": "Questions & Considerations",
420
  "## Questions & Considerations": "Questions & Considerations",
421
- "# Detailed Analysis": "Detailed Analysis",
422
- "## Detailed Analysis": "Detailed Analysis",
423
- "## Context & Background": "Context & Background",
424
- "### Context & Background": "Context & Background",
425
  "## Main Discussion Points": "Main Discussion Points",
426
- "### Main Discussion Points": "Main Discussion Points",
427
- "## Supporting Evidence": "Supporting Evidence",
428
- "### Supporting Evidence": "Supporting Evidence",
429
- "## Conclusions & Recommendations": "Conclusions & Recommendations",
430
- "### Conclusions & Recommendations": "Conclusions & Recommendations"
431
  }
432
 
433
  for chunk in response:
 
42
  # Set page configuration
43
  st.set_page_config(
44
  page_title="ScribeWizard πŸ§™β€β™‚οΈ",
45
+ page_icon
46
+ ="πŸ§™β€β™‚οΈ",
47
  layout="wide",
48
  initial_sidebar_state="expanded"
49
  )
50
 
51
  # Fixed model selections
52
  LLM_MODEL = "deepseek-r1-distill-llama-70b"
 
53
 
54
  # Configure retry parameters without backoff library
55
  MAX_RETRIES = 5
 
313
 
314
  # Enhanced structure for better organization
315
  structure = {
 
316
  "Key Insights": "",
317
  "Action Items": "",
318
  "Questions & Considerations": "",
319
+ "Main Discussion Points": ""
 
 
 
 
 
320
  }
321
 
322
  prompt = f"""
 
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: