shaocongma commited on
Commit
6150071
1 Parent(s): 018eb6d

Print Error Message to User.

Browse files
Files changed (2) hide show
  1. app.py +1 -1
  2. utils/prompts.py +1 -1
app.py CHANGED
@@ -152,7 +152,7 @@ OTHERS_INSTRUCTION = """### Others
152
 
153
  with gr.Blocks(theme=theme) as demo:
154
  gr.Markdown('''
155
- # Auto-Draft: 文献整理辅助工具
156
 
157
  本Demo提供对[Auto-Draft](https://github.com/CCCBora/auto-draft)的auto_draft功能的测试.
158
  通过输入想要生成的论文名称(比如Playing atari with deep reinforcement learning),即可由AI辅助生成论文模板.
 
152
 
153
  with gr.Blocks(theme=theme) as demo:
154
  gr.Markdown('''
155
+ # Auto-Draft: 学术写作辅助工具
156
 
157
  本Demo提供对[Auto-Draft](https://github.com/CCCBora/auto-draft)的auto_draft功能的测试.
158
  通过输入想要生成的论文名称(比如Playing atari with deep reinforcement learning),即可由AI辅助生成论文模板.
utils/prompts.py CHANGED
@@ -46,7 +46,7 @@ SECTION_GENERATION_SYSTEM = PromptTemplate(input_variables=["research_field"],
46
  ######################################################################################################################
47
 
48
  cur_path = os.path.dirname(__file__)
49
- prompts_path = os.path.join(cur_path, '..\\prompts\\instructions.json')
50
  print(prompts_path)
51
  with open(prompts_path, "r") as f:
52
  INSTRUCTIONS = json.load(f)
 
46
  ######################################################################################################################
47
 
48
  cur_path = os.path.dirname(__file__)
49
+ prompts_path = os.path.join(cur_path, '../prompts/instructions.json')
50
  print(prompts_path)
51
  with open(prompts_path, "r") as f:
52
  INSTRUCTIONS = json.load(f)