Spaces:
Runtime error
Runtime error
import gradio as gr | |
from rouge_score import rouge_scorer | |
def calc_rouge_score(summary, reference): | |
score = 0.6 | |
text = "The score is %s" % (score) | |
return text, score | |
iface = gr.Interface( | |
fn=calc_rouge_score, | |
inputs=["text", "text"], | |
outputs=["text", "score"]) | |
iface.launch() | |