Update app.py
Browse files
app.py
CHANGED
|
@@ -236,4 +236,13 @@ with gr.Blocks() as demo:
|
|
| 236 |
|
| 237 |
comment.change(fn=pipeline, inputs=[comment, abstract], outputs=[review_quality, suggestions])
|
| 238 |
|
| 239 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 236 |
|
| 237 |
comment.change(fn=pipeline, inputs=[comment, abstract], outputs=[review_quality, suggestions])
|
| 238 |
|
| 239 |
+
iface = gr.Interface(
|
| 240 |
+
fn=pipeline,
|
| 241 |
+
inputs=[gr.Textbox(label="Peer Review Comments"), gr.Textbox(label="Paper Abstract")],
|
| 242 |
+
outputs=[gr.Textbox(label="Predicted Review Quality"), gr.Textbox(label="Suggestions")],
|
| 243 |
+
title="# Dynamic Length Optimization of Peer Review",
|
| 244 |
+
description="A framework which dynamically provides suggestion to improve a peer review.",
|
| 245 |
+
)
|
| 246 |
+
|
| 247 |
+
if __name__ == "__main__":
|
| 248 |
+
iface.launch()
|