File size: 762 Bytes
fd2845d 5fdc050 f386621 5fdc050 |
1 2 3 4 5 6 7 8 9 10 11 12 |
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() |