shaocongma commited on
Commit
668208d
1 Parent(s): d0084c4

update annoncements

Browse files
Files changed (1) hide show
  1. app.py +4 -4
app.py CHANGED
@@ -21,7 +21,7 @@ from references_generator import generate_top_k_references
21
  openai_key = os.getenv("OPENAI_API_KEY")
22
  access_key_id = os.getenv('AWS_ACCESS_KEY_ID')
23
  secret_access_key = os.getenv('AWS_SECRET_ACCESS_KEY')
24
- GPT4_ENBALE = os.getenv("GPT4_ENBALE") # by default None.
25
  if access_key_id is None or secret_access_key is None:
26
  print("Access keys are not provided. Outputs cannot be saved to AWS Cloud Storage.\n")
27
  IS_CACHE_AVAILABLE = False
@@ -40,10 +40,10 @@ else:
40
  except openai.error.AuthenticationError:
41
  IS_OPENAI_API_KEY_AVAILABLE = False
42
 
43
- DEFAULT_MODEL = "gpt-4" if GPT4_ENBALE else "gpt-3.5-turbo"
44
- GPT4_INTERACTIVE = True if GPT4_ENBALE else False
45
  DEFAULT_SECTIONS = ["introduction", "related works", "backgrounds", "methodology", "experiments",
46
- "conclusion", "abstract"] if GPT4_ENBALE \
47
  else ["introduction", "related works"]
48
 
49
  #######################################################################################################################
 
21
  openai_key = os.getenv("OPENAI_API_KEY")
22
  access_key_id = os.getenv('AWS_ACCESS_KEY_ID')
23
  secret_access_key = os.getenv('AWS_SECRET_ACCESS_KEY')
24
+ GPT4_ENABLE = os.getenv("GPT4_ENABLE") # by default None.
25
  if access_key_id is None or secret_access_key is None:
26
  print("Access keys are not provided. Outputs cannot be saved to AWS Cloud Storage.\n")
27
  IS_CACHE_AVAILABLE = False
 
40
  except openai.error.AuthenticationError:
41
  IS_OPENAI_API_KEY_AVAILABLE = False
42
 
43
+ DEFAULT_MODEL = "gpt-4" if GPT4_ENABLE else "gpt-3.5-turbo"
44
+ GPT4_INTERACTIVE = True if GPT4_ENABLE else False
45
  DEFAULT_SECTIONS = ["introduction", "related works", "backgrounds", "methodology", "experiments",
46
+ "conclusion", "abstract"] if GPT4_ENABLE \
47
  else ["introduction", "related works"]
48
 
49
  #######################################################################################################################