import gradio as gr from transformers import pipeline qa = pipeline("question-answering", model="deepset/gelectra-base-germanquad") def answer_question(context, question): result = qa(question=question, context=context) return result["answer"] gr.Interface(fn=answer_question, inputs=["text", "text"], outputs="text", title="Versicherungs-QA mit GELECTRA").launch()