Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -778,7 +778,7 @@ Standalone question: {question}""")
|
|
778 |
def submit_message(prompt, prompt_template, temperature, max_tokens, context_length, state):
|
779 |
|
780 |
|
781 |
-
|
782 |
|
783 |
|
784 |
#global prompt_template_name
|
@@ -875,7 +875,7 @@ with gr.Blocks(css=css) as demo:
|
|
875 |
|
876 |
btn_submit = gr.Button("Submit")
|
877 |
#total_tokens_str = gr.Markdown(elem_id="total_tokens_str")
|
878 |
-
btn_clear_conversation = gr.Button("Start New Conversation")
|
879 |
|
880 |
|
881 |
with gr.Column(visible=False):
|
|
|
778 |
def submit_message(prompt, prompt_template, temperature, max_tokens, context_length, state):
|
779 |
|
780 |
|
781 |
+
history = state['messages']
|
782 |
|
783 |
|
784 |
#global prompt_template_name
|
|
|
875 |
|
876 |
btn_submit = gr.Button("Submit")
|
877 |
#total_tokens_str = gr.Markdown(elem_id="total_tokens_str")
|
878 |
+
btn_clear_conversation = gr.Button("Start New Conversation", visible=False)
|
879 |
|
880 |
|
881 |
with gr.Column(visible=False):
|