Spaces:
Running
on
Zero
Running
on
Zero
app.py
CHANGED
@@ -238,10 +238,10 @@ with gr.Blocks(theme=theme) as demo:
|
|
238 |
description = gr.Markdown(description)
|
239 |
# instr = gr.Markdown("Upload your paper in pdf format")
|
240 |
file_input = gr.File(file_types=[".pdf"], file_count="single")
|
241 |
-
paper_text_field= gr.Textbox("Upload a pdf or paste the full text of your paper in markdown format here.", label="Paper Text", max_lines=20, autoscroll=False)
|
242 |
with gr.Accordion("Review Template", open=False):
|
243 |
review_template_description = gr.Markdown("We use the ICLR 2025 review template by default, but you can modify the template below as you like.")
|
244 |
-
review_template_field = gr.Textbox(max_lines=20, autoscroll=False, value=REVIEW_FIELDS)
|
245 |
generate_button = gr.Button("Generate Review", interactive=not paper_text_field)
|
246 |
file_input.upload(process_file, file_input, paper_text_field)
|
247 |
paper_text_field.change(lambda text: gr.update(interactive=True) if len(text) > 200 else gr.update(interactive=False), paper_text_field, generate_button)
|
|
|
238 |
description = gr.Markdown(description)
|
239 |
# instr = gr.Markdown("Upload your paper in pdf format")
|
240 |
file_input = gr.File(file_types=[".pdf"], file_count="single")
|
241 |
+
paper_text_field= gr.Textbox("Upload a pdf or paste the full text of your paper in markdown format here.", label="Paper Text", lines=20, max_lines=20, autoscroll=False)
|
242 |
with gr.Accordion("Review Template", open=False):
|
243 |
review_template_description = gr.Markdown("We use the ICLR 2025 review template by default, but you can modify the template below as you like.")
|
244 |
+
review_template_field = gr.Textbox(min_lines=20, max_lines=20, autoscroll=False, value=REVIEW_FIELDS)
|
245 |
generate_button = gr.Button("Generate Review", interactive=not paper_text_field)
|
246 |
file_input.upload(process_file, file_input, paper_text_field)
|
247 |
paper_text_field.change(lambda text: gr.update(interactive=True) if len(text) > 200 else gr.update(interactive=False), paper_text_field, generate_button)
|