ShiwenNi commited on
Commit
619c177
1 Parent(s): a7c59f6

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -95,7 +95,7 @@ class Reviewer:
95
  usage = response.usage.total_tokens
96
  except Exception as e:
97
  # 处理其他的异常
98
- result = "非常抱歉>_<,生了一个错误:"+ str(e)
99
  usage = 'xxxxx'
100
  print("********"*10)
101
  print(result)
@@ -135,7 +135,7 @@ def main(api, review_format, paper_pdf, language):
135
  comments = ''
136
  output2 = ''
137
  if not api or not review_format or not paper_pdf:
138
- comments = "请输入完整内容!"
139
  # 判断PDF文件
140
  else:
141
  # 创建一个Reader对象
 
95
  usage = response.usage.total_tokens
96
  except Exception as e:
97
  # 处理其他的异常
98
+ result = "⚠:非常抱歉>_<,生了一个错误:"+ str(e)
99
  usage = 'xxxxx'
100
  print("********"*10)
101
  print(result)
 
135
  comments = ''
136
  output2 = ''
137
  if not api or not review_format or not paper_pdf:
138
+ comments = "⚠:API-key或审稿要求或论文pdf未输入!请检测!"
139
  # 判断PDF文件
140
  else:
141
  # 创建一个Reader对象