Spaces:
Sleeping
Sleeping
Kevin Wu
commited on
Commit
·
5c71abd
1
Parent(s):
759ae72
Intial commit
Browse files- run_claude.py +16 -15
run_claude.py
CHANGED
@@ -223,21 +223,22 @@ def gradio_interface():
|
|
223 |
gr.Markdown("This tool helps you generate high-quality reviews for the Transactions on Machine Learning Research (TMLR).")
|
224 |
|
225 |
with gr.Row():
|
226 |
-
|
227 |
-
|
228 |
-
|
229 |
-
|
|
|
|
|
|
|
230 |
|
231 |
-
|
232 |
-
|
233 |
-
|
234 |
-
|
235 |
-
|
236 |
-
|
237 |
-
|
238 |
-
|
239 |
-
output_component_requested_changes = gr.Markdown(label="Requested Changes")
|
240 |
-
output_component_impact_concerns = gr.Markdown(label="Impact Concerns")
|
241 |
|
242 |
submit_btn.click(
|
243 |
fn=process,
|
@@ -248,7 +249,7 @@ def gradio_interface():
|
|
248 |
output_component_weaknesses,
|
249 |
output_component_requested_changes,
|
250 |
output_component_impact_concerns,
|
251 |
-
progress_log,
|
252 |
]
|
253 |
)
|
254 |
|
|
|
223 |
gr.Markdown("This tool helps you generate high-quality reviews for the Transactions on Machine Learning Research (TMLR).")
|
224 |
|
225 |
with gr.Row():
|
226 |
+
# Left column
|
227 |
+
left_column = gr.Column(scale=1)
|
228 |
+
with left_column:
|
229 |
+
upload_component = gr.File(label="Upload PDF", type="binary")
|
230 |
+
submit_btn = gr.Button("Generate Review")
|
231 |
+
# Progress log moved below upload section
|
232 |
+
progress_log = gr.Textbox(label="Progress Log", interactive=False, lines=10)
|
233 |
|
234 |
+
# Right column for review outputs
|
235 |
+
right_column = gr.Column(scale=2)
|
236 |
+
with right_column:
|
237 |
+
output_component_contributions = gr.Markdown(label="Contributions")
|
238 |
+
output_component_strengths = gr.Markdown(label="Strengths")
|
239 |
+
output_component_weaknesses = gr.Markdown(label="Weaknesses")
|
240 |
+
output_component_requested_changes = gr.Markdown(label="Requested Changes")
|
241 |
+
output_component_impact_concerns = gr.Markdown(label="Impact Concerns")
|
|
|
|
|
242 |
|
243 |
submit_btn.click(
|
244 |
fn=process,
|
|
|
249 |
output_component_weaknesses,
|
250 |
output_component_requested_changes,
|
251 |
output_component_impact_concerns,
|
252 |
+
progress_log,
|
253 |
]
|
254 |
)
|
255 |
|