Spaces:
Runtime error
Runtime error
Commit
·
556e7cf
1
Parent(s):
3737e00
positioning chat and options
Browse files
app.py
CHANGED
|
@@ -180,10 +180,9 @@ with gr.Blocks(css=css) as demo:
|
|
| 180 |
step = 500,value= 1500
|
| 181 |
)
|
| 182 |
|
| 183 |
-
|
| 184 |
-
youtube_link = examples_set
|
| 185 |
|
| 186 |
-
|
| 187 |
clean_chat_btn.click(clear_chat, [], chatbot)
|
| 188 |
|
| 189 |
question.submit(add_text, inputs=[chatbot, question], outputs=[chatbot, question]).then(bot, chatbot, chatbot)
|
|
|
|
| 180 |
step = 500,value= 1500
|
| 181 |
)
|
| 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 |
+
examples_set.change(fn=youtube_chat, inputs=[examples_set,API_key,LLM_option,temperature,max_new_tokens,char_length], outputs=[langchain_status])
|
| 186 |
clean_chat_btn.click(clear_chat, [], chatbot)
|
| 187 |
|
| 188 |
question.submit(add_text, inputs=[chatbot, question], outputs=[chatbot, question]).then(bot, chatbot, chatbot)
|