Spaces:
Build error
Build error
Update app.py
Browse files
app.py
CHANGED
|
@@ -2,7 +2,11 @@ import gradio as gr
|
|
| 2 |
description = "Question Answering Demo 🙌🏼"
|
| 3 |
title = "Question Answering with Keras"
|
| 4 |
interface = gr.Interface.load("huggingface/keras-io/transformers-qa",
|
|
|
|
|
|
|
| 5 |
description=description,
|
| 6 |
-
title = title
|
|
|
|
|
|
|
| 7 |
)
|
| 8 |
interface.launch()
|
|
|
|
| 2 |
description = "Question Answering Demo 🙌🏼"
|
| 3 |
title = "Question Answering with Keras"
|
| 4 |
interface = gr.Interface.load("huggingface/keras-io/transformers-qa",
|
| 5 |
+
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."
|
| 6 |
+
question = "What is Keras?"
|
| 7 |
description=description,
|
| 8 |
+
title = title,
|
| 9 |
+
theme = "grass",
|
| 10 |
+
examples = [[context, question]]
|
| 11 |
)
|
| 12 |
interface.launch()
|