Dmitry Kirsanov commited on
Commit
724b3c3
·
1 Parent(s): 9a5a6dc

transpire in UI

Browse files
Files changed (2) hide show
  1. app.py +1 -1
  2. understand.py +2 -1
app.py CHANGED
@@ -19,7 +19,7 @@ gradio_app = gr.Interface(
19
  fn=process,
20
  allow_flagging="auto",
21
  inputs=[gr.File(label="Input document (HTML)"), gr.Dropdown(choices=LLM.get_models(), value=LLM.get_models()[0])],
22
- outputs=[gr.Textbox(label="Document type", lines=1), gr.Textbox(label="Summary", lines=8)])
23
 
24
  if __name__ == "__main__":
25
  logger.info("DU starts!")
 
19
  fn=process,
20
  allow_flagging="auto",
21
  inputs=[gr.File(label="Input document (HTML)"), gr.Dropdown(choices=LLM.get_models(), value=LLM.get_models()[0])],
22
+ outputs=[gr.Textbox(label="Document type", lines=1), gr.Textbox(label="Summary", lines=8), gr.Textbox(label="Concepts and actors", lines=12)])
23
 
24
  if __name__ == "__main__":
25
  logger.info("DU starts!")
understand.py CHANGED
@@ -75,6 +75,7 @@ Children and bystanders
75
  self.doctype = self.query_doctype()
76
  if self.doctype != None:
77
  self.summary = self.query_summary()
 
78
 
79
- return self.doctype, self.summary
80
 
 
75
  self.doctype = self.query_doctype()
76
  if self.doctype != None:
77
  self.summary = self.query_summary()
78
+ self.concepts = self.query_concepts()
79
 
80
+ return self.doctype, self.summary, self.concepts
81