Tirath5504 commited on
Commit
968eba7
·
verified ·
1 Parent(s): 79b25e5

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +10 -1
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
- demo.launch()
 
 
 
 
 
 
 
 
 
 
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()