CoolFace
Apppublic

flaechsig/gelectra

sourceHugging Faceupdated 1y agoView on Hugging Face
0likes
app.py14 linesDownload Raw Back to root
1import gradio as gr2from transformers import pipeline3 4qa = pipeline("question-answering", model="deepset/gelectra-base-germanquad")5 6def answer_question(context, question):7    result = qa(question=question, context=context)8    return result["answer"]9 10gr.Interface(fn=answer_question,11             inputs=["text", "text"],12             outputs="text",13             title="Versicherungs-QA mit GELECTRA").launch()14