sjnf / app.py
micole66's picture
Update app.py
f386621
raw
history blame contribute delete
762 Bytes
import gradio as gr
description = "Question Answering Demo 🙌🏼"
title = "Question Answering with Keras"
context = "Keras is an API designed for human beings, not machines. Keras follows best practices for reducing cognitive load: it offers consistent & simple APIs, it minimizes the number of user actions required for common use cases, and it provides clear & actionable error messages. It also has extensive documentation and developer guides. See the model here: hf.co/keras-io/transformers-qa"
question = "What is Keras?"
interface = gr.Interface.load("huggingface/mrm8488/umberto-wikipedia-uncased-v1-finetuned-squadv1-it",
description=description,
title = title,
theme = "grass",
examples = [[context, question]]
)
interface.launch()