Spaces:
Running
Running
Yiqiao Jin
commited on
Commit
•
e39ddaa
1
Parent(s):
9ccabd0
Correct paper extraction in demo
Browse files- agentreview/role_descriptions.py +3 -1
- app.py +5 -5
agentreview/role_descriptions.py
CHANGED
@@ -30,7 +30,7 @@ SCORE_CALCULATION_v1 = {
|
|
30 |
1: "This study is not yet sufficiently thorough to warrant publication or is not relevant to the conference. This paper makes marginal contributions"
|
31 |
}
|
32 |
|
33 |
-
# Start to use this rubric
|
34 |
SCORE_CALCULATION = {
|
35 |
10: "This study is among the top 2% of all papers. It is one of the most thorough I have seen. It changed my "
|
36 |
"thinking on this topic. I would fight for it to be accepted",
|
@@ -97,12 +97,14 @@ def get_reviewer_description(is_benign: bool = None, is_knowledgeable: bool = No
|
|
97 |
bio = ("You are a reviewer. You write peer review of academic papers by evaluating their technical "
|
98 |
f"quality, originality, and clarity. ")
|
99 |
|
|
|
100 |
# The reviewer's famous identities are known to the AC
|
101 |
if knows_authors:
|
102 |
bio += "\n\n" + INSTRUCTIONS_FOR_FAMOUS_AUTHORS
|
103 |
|
104 |
else:
|
105 |
bio += f"{SCORE_CONTROL}\n\n"
|
|
|
106 |
|
107 |
bio += "## Review Guidelines\n"
|
108 |
|
|
|
30 |
1: "This study is not yet sufficiently thorough to warrant publication or is not relevant to the conference. This paper makes marginal contributions"
|
31 |
}
|
32 |
|
33 |
+
# Start to use this rubric as SCORE_CALCULATION_v1 is too harsh
|
34 |
SCORE_CALCULATION = {
|
35 |
10: "This study is among the top 2% of all papers. It is one of the most thorough I have seen. It changed my "
|
36 |
"thinking on this topic. I would fight for it to be accepted",
|
|
|
97 |
bio = ("You are a reviewer. You write peer review of academic papers by evaluating their technical "
|
98 |
f"quality, originality, and clarity. ")
|
99 |
|
100 |
+
"""
|
101 |
# The reviewer's famous identities are known to the AC
|
102 |
if knows_authors:
|
103 |
bio += "\n\n" + INSTRUCTIONS_FOR_FAMOUS_AUTHORS
|
104 |
|
105 |
else:
|
106 |
bio += f"{SCORE_CONTROL}\n\n"
|
107 |
+
"""
|
108 |
|
109 |
bio += "## Review Guidelines\n"
|
110 |
|
app.py
CHANGED
@@ -116,11 +116,11 @@ def get_player_components(name, visible):
|
|
116 |
with gr.Row():
|
117 |
# Converting the three attributes into dropdowns
|
118 |
Intention_config = gr.Dropdown(
|
119 |
-
choices=["Benign", "Malicious", "
|
120 |
interactive=True,
|
121 |
label = "Intention",
|
122 |
show_label=True,
|
123 |
-
value="
|
124 |
)
|
125 |
|
126 |
Knowledge_config = gr.Dropdown(
|
@@ -425,7 +425,7 @@ Simulate conference reviews on your own papers using LLM agents.
|
|
425 |
|
426 |
upload_file_box = gr.File(
|
427 |
visible=True,
|
428 |
-
height
|
429 |
)
|
430 |
|
431 |
with gr.Row():
|
@@ -640,7 +640,7 @@ Simulate conference reviews on your own papers using LLM agents.
|
|
640 |
# 更新前端信息
|
641 |
if timestep:
|
642 |
all_messages = timestep.observation
|
643 |
-
|
644 |
chatbot_output = _convert_to_chatbot_output(all_messages, display_recv=True)
|
645 |
|
646 |
# Initialize update dictionary
|
@@ -769,4 +769,4 @@ Simulate conference reviews on your own papers using LLM agents.
|
|
769 |
|
770 |
|
771 |
demo.queue()
|
772 |
-
demo.launch()
|
|
|
116 |
with gr.Row():
|
117 |
# Converting the three attributes into dropdowns
|
118 |
Intention_config = gr.Dropdown(
|
119 |
+
choices=["Benign", "Malicious", "Normal"],
|
120 |
interactive=True,
|
121 |
label = "Intention",
|
122 |
show_label=True,
|
123 |
+
value="Normal",
|
124 |
)
|
125 |
|
126 |
Knowledge_config = gr.Dropdown(
|
|
|
425 |
|
426 |
upload_file_box = gr.File(
|
427 |
visible=True,
|
428 |
+
height=100,
|
429 |
)
|
430 |
|
431 |
with gr.Row():
|
|
|
640 |
# 更新前端信息
|
641 |
if timestep:
|
642 |
all_messages = timestep.observation
|
643 |
+
|
644 |
chatbot_output = _convert_to_chatbot_output(all_messages, display_recv=True)
|
645 |
|
646 |
# Initialize update dictionary
|
|
|
769 |
|
770 |
|
771 |
demo.queue()
|
772 |
+
demo.launch()
|