Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -39,7 +39,7 @@ def result(passage, reference):
|
|
39 |
return f'<div style="font-weight: normal;">{output}</div>'; #output;
|
40 |
|
41 |
if __name__ == "__main__":
|
42 |
-
article = """<center><img src="https://github.com/abhika-m/researchpapers/blob/main/fava.png?raw=true" alt="Example Image" width=
|
43 |
examples = [["Canada's oldest national park, Banff, was established in 1886. It recently won a Nature's Choice 2023 award for its beautiful mountainous terrain. It's the best national park ever.",
|
44 |
"Banff National Park is Canada's oldest national park, established in 1885 as Rocky Mountains Park. Located in Alberta's Rocky Mountains, 110–180 kilometres (68–112 mi) west of Calgary, Banff encompasses 6,641 square kilometres (2,564 sq mi) of mountainous terrain."]]
|
45 |
demo = gradio.Interface(fn=result, inputs=["text", "text"], outputs="html", title="Fine-grained Hallucination Detection and Editing (FAVA)",
|
|
|
39 |
return f'<div style="font-weight: normal;">{output}</div>'; #output;
|
40 |
|
41 |
if __name__ == "__main__":
|
42 |
+
article = """<center><img src="https://github.com/abhika-m/researchpapers/blob/main/fava.png?raw=true" alt="Example Image" width=650px></center>"""
|
43 |
examples = [["Canada's oldest national park, Banff, was established in 1886. It recently won a Nature's Choice 2023 award for its beautiful mountainous terrain. It's the best national park ever.",
|
44 |
"Banff National Park is Canada's oldest national park, established in 1885 as Rocky Mountains Park. Located in Alberta's Rocky Mountains, 110–180 kilometres (68–112 mi) west of Calgary, Banff encompasses 6,641 square kilometres (2,564 sq mi) of mountainous terrain."]]
|
45 |
demo = gradio.Interface(fn=result, inputs=["text", "text"], outputs="html", title="Fine-grained Hallucination Detection and Editing (FAVA)",
|