arpit13 commited on
Commit
d1de5ff
·
verified ·
1 Parent(s): 3774a2f

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -36,7 +36,7 @@ def clear_conversation_history():
36
  try:
37
  with open(CONVERSATION_FILE, "w") as file:
38
  json.dump([], file)
39
- return "Conversation history cleared successfully."
40
  except Exception as e:
41
  return f"Error clearing history: {e}"
42
 
@@ -146,7 +146,7 @@ with gr.Blocks(css="""
146
  chatbot_ui = gr.Chatbot()
147
  user_input = gr.Textbox(label="Type your message here:🫣", placeholder="Ask me Something Darling 🤭", lines=1)
148
  clear_button = gr.Button("Clear History🥺")
149
- system_message = gr.Textbox(label="System Message😭😭😭", interactive=False)
150
 
151
  history_state = gr.State(load_history())
152
 
 
36
  try:
37
  with open(CONVERSATION_FILE, "w") as file:
38
  json.dump([], file)
39
+ return "Conversation history cleared successfully.😭😭😭"
40
  except Exception as e:
41
  return f"Error clearing history: {e}"
42
 
 
146
  chatbot_ui = gr.Chatbot()
147
  user_input = gr.Textbox(label="Type your message here:🫣", placeholder="Ask me Something Darling 🤭", lines=1)
148
  clear_button = gr.Button("Clear History🥺")
149
+ system_message = gr.Textbox(label="System Message", interactive=False)
150
 
151
  history_state = gr.State(load_history())
152