Spaces:
Runtime error
Runtime error
title: Questions And Answers From Context | |
emoji: 🐢 | |
colorFrom: gray | |
colorTo: red | |
sdk: gradio | |
sdk_version: 4.22.0 | |
app_file: app.py | |
pinned: false | |
Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference | |
Explanation: | |
The script sets up a question-answering pipeline with the "Intel/dynamic_tinybert" model using Hugging Face Transformers. | |
It defines a function answer_question to process the context and question inputs and format the answer in red font using HTML. | |
The Gradio interface is created with two text input boxes for context and question, and an HTML output box for the answer. | |
The interface launches automatically when the script is run. |