benspigel commited on
Commit
3fb9fa0
·
1 Parent(s): 3aab243

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -2
app.py CHANGED
@@ -5,6 +5,9 @@ import os
5
  # Retrieve the API key from the environment variable
6
  api_key = os.environ.get('SECRET_TOKEN')
7
 
 
 
 
8
  # Initialize the OpenAI client with your API key
9
  client = openai.ChatCompletion.create(
10
  api_key=api_key,
@@ -14,8 +17,6 @@ client = openai.ChatCompletion.create(
14
  stop="<break character>"
15
  )
16
 
17
- # Store conversation history
18
- conversation_history = []
19
 
20
  def chatbot(prompt):
21
  global conversation_history
 
5
  # Retrieve the API key from the environment variable
6
  api_key = os.environ.get('SECRET_TOKEN')
7
 
8
+ # Store conversation history
9
+ conversation_history = []
10
+
11
  # Initialize the OpenAI client with your API key
12
  client = openai.ChatCompletion.create(
13
  api_key=api_key,
 
17
  stop="<break character>"
18
  )
19
 
 
 
20
 
21
  def chatbot(prompt):
22
  global conversation_history