abhika-m commited on
Commit
3bb6023
·
verified ·
1 Parent(s): dda9ac3

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +6 -1
app.py CHANGED
@@ -41,5 +41,10 @@ def result(passage, reference):
41
  return f'<div style="font-weight: normal;">{output}</div>'; #output;
42
 
43
  if __name__ == "__main__":
44
- demo = gradio.Interface(fn=result, flagging_dir="flagged/", inputs=["text", "text"], outputs="html", title="Fine-grained Hallucination Detection and Editing (FAVA)", description="Enter some text and a reference for the text and FAVA will detect and edit any hallucinations present.")
 
 
 
 
 
45
  demo.launch(share=True)
 
41
  return f'<div style="font-weight: normal;">{output}</div>'; #output;
42
 
43
  if __name__ == "__main__":
44
+ article = """
45
+ <center>
46
+ <img src="https://huggingface.co/spaces/fava-uw/fava/blob/main/images/fava.png" alt="Example" style="width: 200px;">
47
+ </center>
48
+ """
49
+ demo = gradio.Interface(fn=result, flagging_dir="flagged/", inputs=["text", "text"], outputs="html", title="Fine-grained Hallucination Detection and Editing (FAVA)", description="Enter some text and a reference for the text and FAVA will detect and edit any hallucinations present.", article=article)
50
  demo.launch(share=True)