sarasad commited on
Commit
555d84b
·
1 Parent(s): 5d2daf9

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -1,12 +1,12 @@
1
  import gradio as gr
2
 
3
  def chatbot(message):
4
- if "conversation" not in gradio.Interface.cache:
5
  # Initialize conversation as an empty list
6
- gradio.Interface.cache["conversation"] = []
7
 
8
  # Add user input to the conversation history
9
- gradio.Interface.cache["conversation"].append("User: " + message)
10
 
11
  # Define the bot's responses based on user input
12
  if message.lower() == "hello":
 
1
  import gradio as gr
2
 
3
  def chatbot(message):
4
+ if "conversation" not in gr.Interface.cache:
5
  # Initialize conversation as an empty list
6
+ gr.Interface.cache["conversation"] = []
7
 
8
  # Add user input to the conversation history
9
+ gr.Interface.cache["conversation"].append("User: " + message)
10
 
11
  # Define the bot's responses based on user input
12
  if message.lower() == "hello":