Update app.py
Browse files
app.py
CHANGED
@@ -79,7 +79,14 @@ top_p = gr.Slider(0.0, 1.0, label="Top P", step=0.05, value=0.7)
|
|
79 |
with gr.Blocks() as demo:
|
80 |
chat_history_state = gr.State([])
|
81 |
chatbot = gr.ChatInterface(
|
82 |
-
fn=lambda message, history: update_chatbot(
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
83 |
additional_inputs=[system_msg, max_tokens, temperature, top_p],
|
84 |
title="LLAMA 70B Free Demo",
|
85 |
description="""
|
|
|
79 |
with gr.Blocks() as demo:
|
80 |
chat_history_state = gr.State([])
|
81 |
chatbot = gr.ChatInterface(
|
82 |
+
fn=lambda message, history: update_chatbot(
|
83 |
+
message,
|
84 |
+
history,
|
85 |
+
system_msg.value,
|
86 |
+
max_tokens.value,
|
87 |
+
temperature.value,
|
88 |
+
top_p.value
|
89 |
+
),
|
90 |
additional_inputs=[system_msg, max_tokens, temperature, top_p],
|
91 |
title="LLAMA 70B Free Demo",
|
92 |
description="""
|