wangrongsheng commited on
Commit
1dffaf4
1 Parent(s): 29d9b62

Upload app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -471,7 +471,7 @@ class Reader:
471
  # methods
472
  method_text += paper.section_text_dict[method_key]
473
  text = summary_text + "\n<Methods>:\n" + method_text
474
- chat_method_text, utoken2, ctoken2, ttoken2 = self.chat_method(text=text)
475
  htmls.append(chat_method_text)
476
  else:
477
  chat_method_text = ''
@@ -494,7 +494,7 @@ class Reader:
494
  text = summary_text + "\n <Conclusion>:\n" + conclusion_text
495
  else:
496
  text = summary_text
497
- chat_conclusion_text, utoken3, ctoken3, ttoken3 = self.chat_conclusion(text=text)
498
  htmls.append(chat_conclusion_text)
499
  htmls.append("\n")
500
  # token统计
 
471
  # methods
472
  method_text += paper.section_text_dict[method_key]
473
  text = summary_text + "\n<Methods>:\n" + method_text
474
+ chat_method_text, utoken2, ctoken2, ttoken2 = self.chat_method(text=text, key=str(key))
475
  htmls.append(chat_method_text)
476
  else:
477
  chat_method_text = ''
 
494
  text = summary_text + "\n <Conclusion>:\n" + conclusion_text
495
  else:
496
  text = summary_text
497
+ chat_conclusion_text, utoken3, ctoken3, ttoken3 = self.chat_conclusion(text=text, key=str(key))
498
  htmls.append(chat_conclusion_text)
499
  htmls.append("\n")
500
  # token统计