shaocongma commited on
Commit
ee1317a
1 Parent(s): 6e83d02

update annoncements

Browse files
Files changed (1) hide show
  1. app.py +4 -3
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")
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
@@ -43,7 +43,7 @@ else:
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 IS_OPENAI_API_KEY_AVAILABLE \
47
  else ["introduction", "related works"]
48
 
49
  #######################################################################################################################
@@ -70,7 +70,8 @@ ANNOUNCEMENT = """
70
  ***2023-06-13 Update***:
71
  1. 新增‘高级选项-Prompts模式’. 这个模式仅会输出用于生成论文的Prompts而不会生成论文本身. 可以根据自己的需求修改Prompts, 也可以把Prompts复制给其他语言模型.
72
  2. 把默认的ICLR 2022模板改成了Default模板. 不再显示ICLR的页眉页尾.
73
- 3. 使用GPT-4模型:
 
74
  - 点击Duplicate this Space, 进入Settings-> Repository secrets, 点击New Secret添加OPENAI_API_KEY为自己的OpenAI API Key. 添加GPT4_ENBALE为1.
75
  - 或者可以访问[Auto-Draft-Private](https://huggingface.co/spaces/auto-academic/auto-draft-private).
76
 
 
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
 
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
  #######################################################################################################################
 
70
  ***2023-06-13 Update***:
71
  1. 新增‘高级选项-Prompts模式’. 这个模式仅会输出用于生成论文的Prompts而不会生成论文本身. 可以根据自己的需求修改Prompts, 也可以把Prompts复制给其他语言模型.
72
  2. 把默认的ICLR 2022模板改成了Default模板. 不再显示ICLR的页眉页尾.
73
+ 3. 中文支持: 把输出结果送入[GPT 学术优化](https://github.com/binary-husky/gpt_academic)中的Latex全文翻译、润色功能即可!
74
+ 4. 使用GPT-4模型:
75
  - 点击Duplicate this Space, 进入Settings-> Repository secrets, 点击New Secret添加OPENAI_API_KEY为自己的OpenAI API Key. 添加GPT4_ENBALE为1.
76
  - 或者可以访问[Auto-Draft-Private](https://huggingface.co/spaces/auto-academic/auto-draft-private).
77