AhmadMustafa commited on
Commit
81a0635
·
1 Parent(s): d627173

hardcode: take 4

Browse files
Files changed (1) hide show
  1. app.py +36 -10
app.py CHANGED
@@ -24,15 +24,13 @@ def get_initial_analysis(
24
  transcript_processor: TranscriptProcessor, cid, rsid, origin, ct, uid
25
  ) -> Generator[str, None, None]:
26
  """Perform initial analysis of the transcript using OpenAI."""
27
- if cid == "9v3b-j426-kxxv_2024-11-19T204924" and rsid == "2024-11-19T223131":
28
- if "localhost" in origin:
29
- link_start = "http"
30
- else:
31
- link_start = "https"
32
-
33
- hardcoded_message = f"""**Mala Ramakrishnan**
34
- 1. [Introduction and Event Overview <div id='topic' style="display: inline"> 40s at 03:20 </div>]({origin}/collab/{cid}/{rsid}?st={200}&et={240}&uid={uid})
35
- 2. [Advice for Startup Founders <div id='topic' style="display: inline"> 45s at 26:10 </div>]({origin}/collab/{cid}/{rsid}?st={1570}&et={1615}&uid={uid})
36
 
37
  **Raymond Lee**
38
  1. [Event Introduction and Agenda <div id='topic' style="display: inline"> 120s at 00:39 </div>]({origin}/collab/{cid}/{rsid}?st={39}&et={159}&uid={uid})
@@ -49,8 +47,36 @@ def get_initial_analysis(
49
  **spk_2**
50
  1. [Introduction and Investment Focus <div id='topic' style="display: inline"> 60s at 05:56 </div>]({origin}/collab/{cid}/{rsid}?st={356}&et={416}&uid={uid})
51
  2. [Caution in AI Investments <div id='topic' style="display: inline"> 60s at 10:50 </div>]({origin}/collab/{cid}/{rsid}?st={650}&et={710}&uid={uid})
52
- """
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
53
 
 
54
  collected_message = ""
55
  chunks = [
56
  hardcoded_message[i : i + 10] for i in range(0, len(hardcoded_message), 10)
 
24
  transcript_processor: TranscriptProcessor, cid, rsid, origin, ct, uid
25
  ) -> Generator[str, None, None]:
26
  """Perform initial analysis of the transcript using OpenAI."""
27
+ hardcoded_messages = {
28
+ (
29
+ "9v3b-j426-kxxv_2024-11-19T204924",
30
+ "2024-11-19T223131",
31
+ ): f"""**Mala Ramakrishnan**
32
+ 1. [Introduction and Event Overview <div id='topic' style="display: inline"> 40s at 03:25 </div>]({origin}/collab/{cid}/{rsid}?st={205}&et={240}&uid={uid})
33
+ 2. [Advice for Startup Founders <div id='topic' style="display: inline"> 30s at 26:10 </div>]({origin}/collab/{cid}/{rsid}?st={1570}&et={1600}&uid={uid})
 
 
34
 
35
  **Raymond Lee**
36
  1. [Event Introduction and Agenda <div id='topic' style="display: inline"> 120s at 00:39 </div>]({origin}/collab/{cid}/{rsid}?st={39}&et={159}&uid={uid})
 
47
  **spk_2**
48
  1. [Introduction and Investment Focus <div id='topic' style="display: inline"> 60s at 05:56 </div>]({origin}/collab/{cid}/{rsid}?st={356}&et={416}&uid={uid})
49
  2. [Caution in AI Investments <div id='topic' style="display: inline"> 60s at 10:50 </div>]({origin}/collab/{cid}/{rsid}?st={650}&et={710}&uid={uid})
50
+ """,
51
+ (
52
+ "9v3b-j426-kxxv_2024-11-19T204924",
53
+ "2024-11-19T230912",
54
+ ): f"""**Napoleon Paxton**
55
+ 1. [Introduction and Background <div id='topic' style="display: inline"> 68s at 00:49 </div>](/collab/{cid}/{rsid}?st=49&et=117&uid={uid})
56
+ 2. [AI Squared's Business Model <div id='topic' style="display: inline"> 52s at 15:18 </div>](/collab/{cid}/{rsid}?st=918&et=970&uid={uid})
57
+ 3. [Federal Space and Networking <div id='topic' style="display: inline"> 88s at 24:35 </div>](/collab/{cid}/{rsid}?st=1475&et=1563&uid={uid})
58
+
59
+ **Lauren Hidalgo**
60
+ 1. [Introduction and Experience <div id='topic' style="display: inline"> 77s at 03:01 </div>](/collab/{cid}/{rsid}?st=181&et=258&uid={uid})
61
+ 2. [AI Implementation Approach <div id='topic' style="display: inline"> 108s at 11:50 </div>](/collab/{cid}/{rsid}?st=710&et=818&uid={uid})
62
+
63
+ **Priti Padmanaban**
64
+ 1. [Introduction and AI Marketing <div id='topic' style="display: inline"> 66s at 06:17 </div>](/collab/{cid}/{rsid}?st=377&et=443&uid={uid})
65
+ 2. [Responsible AI Framework <div id='topic' style="display: inline"> 109s at 08:15 </div>](/collab/{cid}/{rsid}?st=495&et=604&uid={uid})
66
+ 3. [AI in Climate Tech <div id='topic' style="display: inline"> 72s at 31:30 </div>](/collab/{cid}/{rsid}?st=1890&et=1962&uid={uid})
67
+
68
+ **Rishi Sawane**
69
+ 1. [Introduction and Background <div id='topic' style="display: inline"> 98s at 04:17 </div>](/collab/{cid}/{rsid}?st=257&et=355&uid={uid})
70
+ 2. [AI and Recruitment Automation <div id='topic' style="display: inline"> 56s at 32:52 </div>](/collab/{cid}/{rsid}?st=1972&et=2028&uid={uid})""",
71
+ }
72
+
73
+ if (cid, rsid) in hardcoded_messages:
74
+ if "localhost" in origin:
75
+ link_start = "http"
76
+ else:
77
+ link_start = "https"
78
 
79
+ hardcoded_message = hardcoded_messages[(cid, rsid)]
80
  collected_message = ""
81
  chunks = [
82
  hardcoded_message[i : i + 10] for i in range(0, len(hardcoded_message), 10)