Spaces:
Runtime error
Runtime error
Commit
·
986604a
1
Parent(s):
d73cdee
removing Radio buttons
Browse files
app.py
CHANGED
|
@@ -132,8 +132,8 @@ css="""
|
|
| 132 |
title = """
|
| 133 |
<div style="text-align: center;max-width: 2048px;">
|
| 134 |
<h1>Chat with Youtube Videos </h1>
|
| 135 |
-
<p style="text-align: center;">Upload a youtube link of any video-lecture/song/Research/Conference & ask Questions to chatbot with the tool
|
| 136 |
-
Tools uses State of the Art Models from HuggingFace/OpenAI so, make sure to add your key
|
| 137 |
</p>
|
| 138 |
</div>
|
| 139 |
"""
|
|
@@ -150,7 +150,6 @@ with gr.Blocks(css=css) as demo:
|
|
| 150 |
|
| 151 |
with gr.Group():
|
| 152 |
chatbot = gr.Chatbot(height=270)
|
| 153 |
-
examples_set = gr.Radio(label="Examples of some You tube Videos",choices=EXAMPLES)
|
| 154 |
|
| 155 |
with gr.Row():
|
| 156 |
question = gr.Textbox(label="Type your question !",lines=1).style(full_width=True)
|
|
@@ -183,7 +182,6 @@ with gr.Blocks(css=css) as demo:
|
|
| 183 |
|
| 184 |
load_youtube_bt.click(youtube_chat,inputs= [youtube_link,API_key,LLM_option,temperature,max_new_tokens,char_length],outputs=[langchain_status], queue=False)
|
| 185 |
|
| 186 |
-
# examples_set.change(fn=youtube_chat, inputs=[examples_set,API_key,LLM_option,temperature,max_new_tokens,char_length], outputs=[langchain_status])
|
| 187 |
clean_chat_btn.click(clear_chat, [], chatbot)
|
| 188 |
|
| 189 |
question.submit(add_text, inputs=[chatbot, question], outputs=[chatbot, question]).then(bot, chatbot, chatbot)
|
|
|
|
| 132 |
title = """
|
| 133 |
<div style="text-align: center;max-width: 2048px;">
|
| 134 |
<h1>Chat with Youtube Videos </h1>
|
| 135 |
+
<p style="text-align: center;">Upload a youtube link of any video-lecture/song/Research/Conference & ask Questions to chatbot with the tool.
|
| 136 |
+
<i> Tools uses State of the Art Models from HuggingFace/OpenAI so, make sure to add your key.</i>
|
| 137 |
</p>
|
| 138 |
</div>
|
| 139 |
"""
|
|
|
|
| 150 |
|
| 151 |
with gr.Group():
|
| 152 |
chatbot = gr.Chatbot(height=270)
|
|
|
|
| 153 |
|
| 154 |
with gr.Row():
|
| 155 |
question = gr.Textbox(label="Type your question !",lines=1).style(full_width=True)
|
|
|
|
| 182 |
|
| 183 |
load_youtube_bt.click(youtube_chat,inputs= [youtube_link,API_key,LLM_option,temperature,max_new_tokens,char_length],outputs=[langchain_status], queue=False)
|
| 184 |
|
|
|
|
| 185 |
clean_chat_btn.click(clear_chat, [], chatbot)
|
| 186 |
|
| 187 |
question.submit(add_text, inputs=[chatbot, question], outputs=[chatbot, question]).then(bot, chatbot, chatbot)
|