Samarth991
commited on
Commit
·
5443811
1
Parent(s):
4a8d123
adding you tube processing LLM
Browse files
app.py
CHANGED
@@ -125,6 +125,13 @@ with gr.Blocks(css=css) as demo:
|
|
125 |
gr.Markdown(
|
126 |
"""**Chat over you tube videos with [Falcon-7B-Instruct or ChatGPT]!**
|
127 |
""")
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
128 |
|
129 |
with gr.Column():
|
130 |
with gr.Box():
|
@@ -161,15 +168,7 @@ with gr.Blocks(css=css) as demo:
|
|
161 |
load_youtube_bt = gr.Button("Process Youtube Link",).style(full_width = False)
|
162 |
langchain_status = gr.Textbox(label="Status", placeholder="", interactive = False)
|
163 |
|
164 |
-
with gr.Group():
|
165 |
-
chatbot = gr.Chatbot(height=300)
|
166 |
|
167 |
-
with gr.Row():
|
168 |
-
question = gr.Textbox(label="Type your question !",lines=1).style(full_width=True)
|
169 |
-
submit_btn = gr.Button(value="Send message", variant="primary", scale = 1)
|
170 |
-
clean_chat_btn = gr.Button("Delete Chat")
|
171 |
-
|
172 |
-
|
173 |
load_youtube_bt.click(youtube_chat,inputs= [youtube_link,API_key,LLM_option,temperature,max_new_tokens,char_length],outputs=[langchain_status], queue=False)
|
174 |
clean_chat_btn.click(clear_chat, [], chatbot)
|
175 |
|
|
|
125 |
gr.Markdown(
|
126 |
"""**Chat over you tube videos with [Falcon-7B-Instruct or ChatGPT]!**
|
127 |
""")
|
128 |
+
with gr.Group():
|
129 |
+
chatbot = gr.Chatbot(height=300)
|
130 |
+
|
131 |
+
with gr.Row():
|
132 |
+
question = gr.Textbox(label="Type your question !",lines=1).style(full_width=True)
|
133 |
+
submit_btn = gr.Button(value="Send message", variant="primary", scale = 1)
|
134 |
+
clean_chat_btn = gr.Button("Delete Chat")
|
135 |
|
136 |
with gr.Column():
|
137 |
with gr.Box():
|
|
|
168 |
load_youtube_bt = gr.Button("Process Youtube Link",).style(full_width = False)
|
169 |
langchain_status = gr.Textbox(label="Status", placeholder="", interactive = False)
|
170 |
|
|
|
|
|
171 |
|
|
|
|
|
|
|
|
|
|
|
|
|
172 |
load_youtube_bt.click(youtube_chat,inputs= [youtube_link,API_key,LLM_option,temperature,max_new_tokens,char_length],outputs=[langchain_status], queue=False)
|
173 |
clean_chat_btn.click(clear_chat, [], chatbot)
|
174 |
|