Samarth991 commited on
Commit
8fd5a3e
·
1 Parent(s): 2b89dc1

adding you tube processing LLM

Browse files
Files changed (1) hide show
  1. app.py +12 -0
app.py CHANGED
@@ -25,6 +25,8 @@ DEFAULT_CHAR_LENGTH = 1000
25
  def loading_file():
26
  return "Loading..."
27
 
 
 
28
 
29
  def get_text_from_youtube_link(video_link,max_video_length=800):
30
  video_text = ""
@@ -125,3 +127,13 @@ with gr.Blocks(css=css) as demo:
125
  with gr.Column():
126
  with gr.Box():
127
  add_link = gr.Textbox(label="Add your you tube Link",text_align='left',autofocus=True)
 
 
 
 
 
 
 
 
 
 
 
25
  def loading_file():
26
  return "Loading..."
27
 
28
+ def clear_chat():
29
+ return []
30
 
31
  def get_text_from_youtube_link(video_link,max_video_length=800):
32
  video_text = ""
 
127
  with gr.Column():
128
  with gr.Box():
129
  add_link = gr.Textbox(label="Add your you tube Link",text_align='left',autofocus=True)
130
+ with gr.Column():
131
+ with gr.Box():
132
+ load_youtube_bt = gr.Button("Process Youtube Link",).style(full_width = False)
133
+ langchain_status = gr.Textbox(label="Status", placeholder="", interactive = False)
134
+
135
+
136
+ clean_chat_btn.click(clear_chat, [], chatbot)
137
+
138
+
139
+ demo.launch()