Spaces:
Runtime error
Runtime error
Commit
·
d08a444
1
Parent(s):
c2cb504
Update app.py
Browse files
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)
|