import gradio as gr description = "LongformerQA: The Long-Document Transformer. To use it, simply add your text or click one of the examples to load them. Read more at the links below." article = "

Longformer: The Long-Document Transformer | Github Repo

" gr.Interface.load("huggingface/allenai/longformer-large-4096-finetuned-triviaqa", description=description, article=article, examples=[ ["My name is Wolfgang and I live in Berlin", "Where do I live?"], ["The capital of France is Paris", "What is the capital of France?"] ]).launch()