Spaces:
Running
Running
Update app.py
Browse filesyt_url = f'https://youtu.be/{yt_id}?t={seek_HMS}'
app.py
CHANGED
|
@@ -385,9 +385,9 @@ def chat(prompt, user_window, pwd_window, past, response, gptModel, clip_text, d
|
|
| 385 |
seek_HMS = seek_hms(time)
|
| 386 |
seek_colons = seek_HMS.replace('h',' : ').replace('m',' : ').replace('s','')
|
| 387 |
pure_text = remove_times(text)
|
| 388 |
-
yt_url = f'https://
|
| 389 |
clip_txt += \
|
| 390 |
-
md(f'\n\n{name} ({upload_date})\nAt seek time: {seek_colons}\nYouTube Link: [URL]({yt_url}\n\n{pure_text}\n================')
|
| 391 |
rag_txt += pure_text
|
| 392 |
prompt = rag_txt + '.\n ' + prompt + '\nGive higher priority to the information just provided.'
|
| 393 |
past.append({"role":"user", "content":prompt})
|
|
|
|
| 385 |
seek_HMS = seek_hms(time)
|
| 386 |
seek_colons = seek_HMS.replace('h',' : ').replace('m',' : ').replace('s','')
|
| 387 |
pure_text = remove_times(text)
|
| 388 |
+
yt_url = f'https://youtu.be/{yt_id}?t={seek_HMS}'
|
| 389 |
clip_txt += \
|
| 390 |
+
md(f'\n\n{name} ({upload_date})\nAt seek time: {seek_colons}\nYouTube Link: [URL]({yt_url})\n\n{pure_text}\n================')
|
| 391 |
rag_txt += pure_text
|
| 392 |
prompt = rag_txt + '.\n ' + prompt + '\nGive higher priority to the information just provided.'
|
| 393 |
past.append({"role":"user", "content":prompt})
|