File size: 729 Bytes
9590410
 
 
82627b0
d895bf2
174c505
9590410
d895bf2
 
 
9590410
 
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/keras-io/transformers-qa", 
    description=description,
    title = title, 
    theme = "grass",
    examples = [[context, question]]
)
interface.launch()