Spaces:
Paused
Paused
Commit ·
7abd251
1
Parent(s): eb44fe1
add: state for origin
Browse files330 unmodified lines3313323333343353363378 unmodified lines34634734834935035135237 unmodified lines3903913923913933943953 unmodified lines399400401402403404405406136 unmodified lines543544545546547548549550330 unmodified lines link_start = "http" else: link_start = "https"
if ct == "si": # street interview prompt = f"""This is a transcript for a street interview. Transcript: {transcript}In this street interview, the host asks multiple questions to the interviewees.8 unmodified linesFor Example:If the start time is 10:13 and end time is 10:18, the url will be:{link_start}://roll.ai/colab/1234aq_12314/51234151?st=613&et=618In the URL, make sure that after RSID there is ? and then rest of the fields are added via &.""" else: prompt = f"""Given the transcript {transcript}, For All the speakers, short list all people, news, events, trends, and source that are discussed by speakers along with the start time of that topic and end time of that topic from the transcript. Rank all topics based on what would make for the best social clips. I need atleast 3 topics per speaker.37 unmodified lines link_start = "http" else: link_start = "https"
prompt = f"""You are a helpful assistant analyzing transcripts and generating timestamps and URL. Call ID is {cid}, Session ID is {rsid}, origin is {origin}, Call Type is {ct}.Transcript:\n{transcript_processor.get_transcript()}If a user asks timestamps for a specific topic, find the start time and end time of that specific topic and return answer in the format: 3 unmodified linesFor Example:If the start time is 10:13 and end time is 10:18, the url will be:{link_start}://roll.ai/colab/1234aq_12314/51234151?st=613&et=618In the URL, make sure that after RSID there is ? and then rest of the fields are added via &.
""" messages = [{"role": "system", "content": prompt}]
136 unmodified lines transcript_processor_state, call_id_state, colab_id_state, origin_state, ct_state, ], [msg, chatbot], )app.py+6-1