Spaces:
Sleeping
Sleeping
Commit
·
d627173
1
Parent(s):
56c4a17
hardcode: origin msg for cid
Browse files
app.py
CHANGED
@@ -23,22 +23,6 @@ client = OpenAI()
|
|
23 |
def get_initial_analysis(
|
24 |
transcript_processor: TranscriptProcessor, cid, rsid, origin, ct, uid
|
25 |
) -> Generator[str, None, None]:
|
26 |
-
# {
|
27 |
-
# "p_name": "Roll4 Demo",
|
28 |
-
# "p_email": "[email protected]",
|
29 |
-
# "p_uid": "56a82610-5a8d-11ef-a41a-02aa9bfd29a3",
|
30 |
-
# "p_role": "GUEST",
|
31 |
-
# "p_id": 10952,
|
32 |
-
# "f_id": "F759EDEC-9299-49BB-9759-52BB877F534E",
|
33 |
-
# "f_name": "F2 Roll4D iPhone2x",
|
34 |
-
# "f_type": "2x",
|
35 |
-
# "callId": "9v3b-j426-kxxv_2024-11-19T204924",
|
36 |
-
# "callDeviceId": "BDE690C3-E197-41E9-BC56-3E3AE2CD5A62",
|
37 |
-
# "recordingSessionId": "2024-11-19T223131",
|
38 |
-
# "time": "19 Nov 2024, 22:31:31",
|
39 |
-
# "timestamp": 1732055491000,
|
40 |
-
# "timerange": "1732054891000 - 1732059091000",
|
41 |
-
# }
|
42 |
"""Perform initial analysis of the transcript using OpenAI."""
|
43 |
if cid == "9v3b-j426-kxxv_2024-11-19T204924" and rsid == "2024-11-19T223131":
|
44 |
if "localhost" in origin:
|
@@ -47,24 +31,24 @@ def get_initial_analysis(
|
|
47 |
link_start = "https"
|
48 |
|
49 |
hardcoded_message = f"""**Mala Ramakrishnan**
|
50 |
-
1. [Introduction and Event Overview <div id='topic' style="display: inline"> 40s at 03:20 </div>]({
|
51 |
-
2. [Advice for Startup Founders <div id='topic' style="display: inline"> 45s at 26:10 </div>]({
|
52 |
|
53 |
**Raymond Lee**
|
54 |
-
1. [Event Introduction and Agenda <div id='topic' style="display: inline"> 120s at 00:39 </div>]({
|
55 |
-
2. [Introduction of Mala Ramakrishnan <div id='topic' style="display: inline"> 20s at 02:51 </div>]({
|
56 |
|
57 |
**Vince Lane**
|
58 |
-
1. [Introduction and Background <div id='topic' style="display: inline"> 60s at 04:42 </div>]({
|
59 |
-
2. [Advice for Founders <div id='topic' style="display: inline"> 60s at 19:48 </div>]({
|
60 |
|
61 |
**Marriott Wharton**
|
62 |
-
1. [Introduction and Investment Focus <div id='topic' style="display: inline"> 60s at 06:36 </div>]({
|
63 |
-
2. [AI as a Fundamental Tool <div id='topic' style="display: inline"> 60s at 08:39 </div>]({
|
64 |
|
65 |
**spk_2**
|
66 |
-
1. [Introduction and Investment Focus <div id='topic' style="display: inline"> 60s at 05:56 </div>]({
|
67 |
-
2. [Caution in AI Investments <div id='topic' style="display: inline"> 60s at 10:50 </div>]({
|
68 |
"""
|
69 |
|
70 |
collected_message = ""
|
|
|
23 |
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:
|
|
|
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})
|
39 |
+
2. [Introduction of Mala Ramakrishnan <div id='topic' style="display: inline"> 20s at 02:51 </div>]({origin}/collab/{cid}/{rsid}?st={171}&et={191}&uid={uid})
|
40 |
|
41 |
**Vince Lane**
|
42 |
+
1. [Introduction and Background <div id='topic' style="display: inline"> 60s at 04:42 </div>]({origin}/collab/{cid}/{rsid}?st={282}&et={342}&uid={uid})
|
43 |
+
2. [Advice for Founders <div id='topic' style="display: inline"> 60s at 19:48 </div>]({origin}/collab/{cid}/{rsid}?st={1188}&et={1248}&uid={uid})
|
44 |
|
45 |
**Marriott Wharton**
|
46 |
+
1. [Introduction and Investment Focus <div id='topic' style="display: inline"> 60s at 06:36 </div>]({origin}/collab/{cid}/{rsid}?st={396}&et={456}&uid={uid})
|
47 |
+
2. [AI as a Fundamental Tool <div id='topic' style="display: inline"> 60s at 08:39 </div>]({origin}/collab/{cid}/{rsid}?st={519}&et={579}&uid={uid})
|
48 |
|
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 = ""
|