Update app.py
Browse files
app.py
CHANGED
@@ -257,7 +257,7 @@ with gr.Blocks(theme=gr.themes.Default() ) as demo:
|
|
257 |
# Bind the `process_chat_and_info` function to the submit event of the message textbox
|
258 |
msg.submit(
|
259 |
fn=generate_response,
|
260 |
-
inputs=[msg,
|
261 |
outputs=[chatbot, relevant_info_textbox], # Order matters here: chatbot, relevant_info, then msg
|
262 |
queue=False # Set to True if you expect heavy load
|
263 |
)
|
@@ -265,7 +265,7 @@ with gr.Blocks(theme=gr.themes.Default() ) as demo:
|
|
265 |
# Bind the `process_chat_and_info` function to the click event of the send button
|
266 |
submit_btn.click(
|
267 |
fn=generate_response,
|
268 |
-
inputs=[msg,
|
269 |
outputs=[chatbot, relevant_info_textbox], # Order matters here
|
270 |
queue=False # Set to True if you expect heavy load
|
271 |
)
|
|
|
257 |
# Bind the `process_chat_and_info` function to the submit event of the message textbox
|
258 |
msg.submit(
|
259 |
fn=generate_response,
|
260 |
+
inputs=[msg, chatbot, model_name_textbox, temperature_slider, max_tokens_slider, top_p_slider, seed_number],
|
261 |
outputs=[chatbot, relevant_info_textbox], # Order matters here: chatbot, relevant_info, then msg
|
262 |
queue=False # Set to True if you expect heavy load
|
263 |
)
|
|
|
265 |
# Bind the `process_chat_and_info` function to the click event of the send button
|
266 |
submit_btn.click(
|
267 |
fn=generate_response,
|
268 |
+
inputs=[msg, chatbot, model_name_textbox, temperature_slider, max_tokens_slider, top_p_slider, seed_number],
|
269 |
outputs=[chatbot, relevant_info_textbox], # Order matters here
|
270 |
queue=False # Set to True if you expect heavy load
|
271 |
)
|