File size: 699 Bytes
6ec0f28
 
 
 
 
 
 
 
 
 
 
 
72a13a1
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
---
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.