Spaces:
Runtime error
Runtime error
Commit
·
a03e0aa
1
Parent(s):
56e215e
adding you tube processing LLM
Browse files
app.py
CHANGED
|
@@ -125,13 +125,13 @@ with gr.Blocks(css="""#chatbot {font-size: 14px;min-height: 300px;}""") as demo:
|
|
| 125 |
|
| 126 |
with gr.Column():
|
| 127 |
with gr.Box():
|
| 128 |
-
|
| 129 |
with gr.Column():
|
| 130 |
with gr.Box():
|
| 131 |
load_youtube_bt = gr.Button("Process Youtube Link",).style(full_width = False)
|
| 132 |
-
|
| 133 |
-
|
| 134 |
-
|
| 135 |
clean_chat_btn.click(clear_chat, [], chatbot)
|
| 136 |
|
| 137 |
demo.launch()
|
|
|
|
| 125 |
|
| 126 |
with gr.Column():
|
| 127 |
with gr.Box():
|
| 128 |
+
youtube_link = gr.Textbox(label="Add your you tube Link",text_align='left',autofocus=True)
|
| 129 |
with gr.Column():
|
| 130 |
with gr.Box():
|
| 131 |
load_youtube_bt = gr.Button("Process Youtube Link",).style(full_width = False)
|
| 132 |
+
langchain_status = gr.Textbox(label="Status", placeholder="", interactive = False)
|
| 133 |
+
|
| 134 |
+
load_youtube_bt.click(youtube_chat,inputs= [youtube_link,API_key,LLM_option,temperature,max_new_tokens,char_length],outputs=[langchain_status], queue=False)
|
| 135 |
clean_chat_btn.click(clear_chat, [], chatbot)
|
| 136 |
|
| 137 |
demo.launch()
|