Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -87,7 +87,7 @@ class Reviewer:
|
|
87 |
result = ''
|
88 |
for choice in response.choices:
|
89 |
result += choice.message.content
|
90 |
-
result = insert_sentence(result, '**Generated by ChatGPT, no copying allowed!**',
|
91 |
result += "\n\n⚠伦理声明/Ethics statement:\n--禁止直接复制生成的评论用于任何论文审稿工作!\n--Direct copying of generated comments for any paper review work is prohibited!"
|
92 |
print("********"*10)
|
93 |
print(result)
|
@@ -168,7 +168,7 @@ inp = [gradio.inputs.Textbox(label="请输入你的API-key(sk开头的字符串)
|
|
168 |
default="",
|
169 |
type='password'),
|
170 |
gradio.inputs.Textbox(lines=5,
|
171 |
-
label="
|
172 |
default="""* Overall Review
|
173 |
Please briefly summarize the main points and contributions of this paper.
|
174 |
xxx
|
@@ -201,7 +201,7 @@ xxx"""
|
|
201 |
|
202 |
chat_reviewer_gui = gradio.Interface(fn=main,
|
203 |
inputs=inp,
|
204 |
-
outputs = [gradio.Textbox(lines=25, label="
|
205 |
title=title,
|
206 |
description=description)
|
207 |
|
|
|
87 |
result = ''
|
88 |
for choice in response.choices:
|
89 |
result += choice.message.content
|
90 |
+
result = insert_sentence(result, '**Generated by ChatGPT, no copying allowed!**', 25)
|
91 |
result += "\n\n⚠伦理声明/Ethics statement:\n--禁止直接复制生成的评论用于任何论文审稿工作!\n--Direct copying of generated comments for any paper review work is prohibited!"
|
92 |
print("********"*10)
|
93 |
print(result)
|
|
|
168 |
default="",
|
169 |
type='password'),
|
170 |
gradio.inputs.Textbox(lines=5,
|
171 |
+
label="请输入特定的分析要求和格式(否则为默认格式)",
|
172 |
default="""* Overall Review
|
173 |
Please briefly summarize the main points and contributions of this paper.
|
174 |
xxx
|
|
|
201 |
|
202 |
chat_reviewer_gui = gradio.Interface(fn=main,
|
203 |
inputs=inp,
|
204 |
+
outputs = [gradio.Textbox(lines=25, label="分析结果"), gradio.Textbox(lines=2, label="资源统计")],
|
205 |
title=title,
|
206 |
description=description)
|
207 |
|