Heiko Hotz commited on
Commit
080261d
1 Parent(s): 092c7c9

Add application file

Browse files
Files changed (1) hide show
  1. app.py +4 -4
app.py CHANGED
@@ -3,11 +3,11 @@ from rouge_score import rouge_scorer
3
 
4
  def calc_rouge_score(summary, reference):
5
  score = 0.6
6
- text = "The core is %s" % (score)
7
- return text, score
8
 
9
  iface = gr.Interface(
10
  fn=calc_rouge_score,
11
- inputs=["text", "text"],
12
- outputs=["text", "score"])
13
  iface.launch()
3
 
4
  def calc_rouge_score(summary, reference):
5
  score = 0.6
6
+ text = "The score is %s" % (score)
7
+ return text, score
8
 
9
  iface = gr.Interface(
10
  fn=calc_rouge_score,
11
+ inputs=["text", "text"],
12
+ outputs=["text", "score"])
13
  iface.launch()