AhmadMustafa commited on
Commit
56c4a17
·
1 Parent(s): ae123b6

hardcode: link start msg for cid

Browse files
Files changed (1) hide show
  1. app.py +5 -0
app.py CHANGED
@@ -41,6 +41,11 @@ def get_initial_analysis(
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
  hardcoded_message = f"""**Mala Ramakrishnan**
45
  1. [Introduction and Event Overview <div id='topic' style="display: inline"> 40s at 03:20 </div>]({link_start}://{origin}/collab/{cid}/{rsid}?st={200}&et={240}&uid={uid})
46
  2. [Advice for Startup Founders <div id='topic' style="display: inline"> 45s at 26:10 </div>]({link_start}://{origin}/collab/{cid}/{rsid}?st={1570}&et={1615}&uid={uid})
 
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:
45
+ link_start = "http"
46
+ else:
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>]({link_start}://{origin}/collab/{cid}/{rsid}?st={200}&et={240}&uid={uid})
51
  2. [Advice for Startup Founders <div id='topic' style="display: inline"> 45s at 26:10 </div>]({link_start}://{origin}/collab/{cid}/{rsid}?st={1570}&et={1615}&uid={uid})