jadend commited on
Commit
f6eb5de
·
1 Parent(s): 8ae0e73

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -8,6 +8,7 @@ import huggingface_hub
8
  from huggingface_hub import Repository
9
  from datetime import datetime
10
 
 
11
  client = OpenAI()
12
 
13
  # set up for the Hugging Face dataset, based on the directory you set up
@@ -44,7 +45,6 @@ user_db = {
44
 
45
  # the OpenAI function to use the given prompt to the model defined.
46
  def mr_bot(premise, tokens, temperature):
47
- openai.api_key = os.environ["API_TOKEN"]
48
  response = client.chat.completions.create(
49
  model="gpt-3.5-turbo",
50
  messages=[{"role": "user", "content": premise}],
 
8
  from huggingface_hub import Repository
9
  from datetime import datetime
10
 
11
+ openai.api_key = os.environ["API_TOKEN"]
12
  client = OpenAI()
13
 
14
  # set up for the Hugging Face dataset, based on the directory you set up
 
45
 
46
  # the OpenAI function to use the given prompt to the model defined.
47
  def mr_bot(premise, tokens, temperature):
 
48
  response = client.chat.completions.create(
49
  model="gpt-3.5-turbo",
50
  messages=[{"role": "user", "content": premise}],