ArdaSaygan commited on
Commit
d08a444
·
1 Parent(s): c2cb504

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -21,7 +21,7 @@ def chatWithGPT(chatHistory):
21
  return chatHistory
22
 
23
  with gr.Blocks() as demo:
24
- chatHistory = []
25
 
26
  def generateResponse(message):
27
  completion = GPTCompletion(system="You are an AI chatting with a human.", max_tokens=2048, temperature=1.5)
 
21
  return chatHistory
22
 
23
  with gr.Blocks() as demo:
24
+ chatHistory = gr.State([])
25
 
26
  def generateResponse(message):
27
  completion = GPTCompletion(system="You are an AI chatting with a human.", max_tokens=2048, temperature=1.5)