Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -140,8 +140,8 @@ def main(api, review_format, paper_pdf, language):
|
|
140 |
reviewer1 = Reviewer(api, review_format, paper_pdf, language)
|
141 |
# 开始判断是路径还是文件:
|
142 |
comments, total_token_used = reviewer1.review_by_chatgpt(paper_list=paper_pdf)
|
143 |
-
|
144 |
-
|
145 |
return comments, output2
|
146 |
|
147 |
|
|
|
140 |
reviewer1 = Reviewer(api, review_format, paper_pdf, language)
|
141 |
# 开始判断是路径还是文件:
|
142 |
comments, total_token_used = reviewer1.review_by_chatgpt(paper_list=paper_pdf)
|
143 |
+
time_used = time.time() - start_time
|
144 |
+
output2 ="使用token数:"+ str(total_token_used)+"\n花费时间:"+ str(round(time_used, 2)) +"秒"
|
145 |
return comments, output2
|
146 |
|
147 |
|