Spaces:
Sleeping
Sleeping
Samarth991
commited on
Commit
·
8601dca
1
Parent(s):
2eae17f
adding you tube processing LLM
Browse files
app.py
CHANGED
@@ -123,13 +123,6 @@ title = """
|
|
123 |
with gr.Blocks(css="""#chatbot {font-size: 14px;min-height: 300px;}""") as demo:
|
124 |
with gr.Column(elem_id="col-container"):
|
125 |
gr.HTML(title)
|
126 |
-
|
127 |
-
with gr.Group():
|
128 |
-
chatbot = gr.Chatbot(height=300)
|
129 |
-
with gr.Row():
|
130 |
-
question = gr.Textbox(label="Type your question !",lines=1).style(full_width=True)
|
131 |
-
submit_btn = gr.Button(value="Send message", variant="primary", scale = 1)
|
132 |
-
clean_chat_btn = gr.Button("Delete Chat")
|
133 |
|
134 |
with gr.Column():
|
135 |
with gr.Box():
|
@@ -166,6 +159,15 @@ with gr.Blocks(css="""#chatbot {font-size: 14px;min-height: 300px;}""") as demo:
|
|
166 |
load_youtube_bt = gr.Button("Process Youtube Link",).style(full_width = False)
|
167 |
langchain_status = gr.Textbox(label="Status", placeholder="", interactive = False)
|
168 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
169 |
load_youtube_bt.click(youtube_chat,inputs= [youtube_link,API_key,LLM_option,temperature,max_new_tokens,char_length],outputs=[langchain_status], queue=False)
|
170 |
clean_chat_btn.click(clear_chat, [], chatbot)
|
171 |
|
|
|
123 |
with gr.Blocks(css="""#chatbot {font-size: 14px;min-height: 300px;}""") as demo:
|
124 |
with gr.Column(elem_id="col-container"):
|
125 |
gr.HTML(title)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
126 |
|
127 |
with gr.Column():
|
128 |
with gr.Box():
|
|
|
159 |
load_youtube_bt = gr.Button("Process Youtube Link",).style(full_width = False)
|
160 |
langchain_status = gr.Textbox(label="Status", placeholder="", interactive = False)
|
161 |
|
162 |
+
with gr.Group():
|
163 |
+
chatbot = gr.Chatbot(height=300)
|
164 |
+
|
165 |
+
with gr.Row():
|
166 |
+
question = gr.Textbox(label="Type your question !",lines=1).style(full_width=True)
|
167 |
+
submit_btn = gr.Button(value="Send message", variant="primary", scale = 1)
|
168 |
+
clean_chat_btn = gr.Button("Delete Chat")
|
169 |
+
|
170 |
+
|
171 |
load_youtube_bt.click(youtube_chat,inputs= [youtube_link,API_key,LLM_option,temperature,max_new_tokens,char_length],outputs=[langchain_status], queue=False)
|
172 |
clean_chat_btn.click(clear_chat, [], chatbot)
|
173 |
|