Update README.md
Browse files
README.md
CHANGED
@@ -8,5 +8,49 @@ sdk_version: 4.22.0
|
|
8 |
app_file: app.py
|
9 |
pinned: false
|
10 |
---
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
11 |
|
12 |
Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference
|
|
|
8 |
app_file: app.py
|
9 |
pinned: false
|
10 |
---
|
11 |
+
# Bert Based Question Answering
|
12 |
+
|
13 |
+
This is a question answering application based on the BERT model. Users can input a context and a question, and the model will generate an answer based on the context.
|
14 |
+
|
15 |
+
## Usage
|
16 |
+
|
17 |
+
1. Install dependencies:
|
18 |
+
|
19 |
+
```bash
|
20 |
+
pip install torch transformers gradio
|
21 |
+
```
|
22 |
+
|
23 |
+
2. Run the application:
|
24 |
+
|
25 |
+
```bash
|
26 |
+
python app.py
|
27 |
+
```
|
28 |
+
|
29 |
+
3. Once the application is running, open the provided URL in your web browser. You can then enter the context and question to get the model's response.
|
30 |
+
|
31 |
+
## Example Interactions
|
32 |
+
|
33 |
+
The application comes preloaded with some example interactions. Here are a few examples:
|
34 |
+
|
35 |
+
- **Context**: "The capital of France is Paris."
|
36 |
+
- **Question**: "What is the capital of France?"
|
37 |
+
- **Expected Response**: "Paris"
|
38 |
+
|
39 |
+
- **Context**: "Water boils at 100 degrees Celsius or 212 degrees Fahrenheit."
|
40 |
+
- **Question**: "At what temperature does water boil?"
|
41 |
+
- **Expected Response**: "100 degrees Celsius"
|
42 |
+
|
43 |
+
- **Context**: "The Mona Lisa was painted by Leonardo da Vinci."
|
44 |
+
- **Question**: "Who painted the Mona Lisa?"
|
45 |
+
- **Expected Response**: "Leonardo da Vinci"
|
46 |
+
|
47 |
+
## Interface Customization
|
48 |
+
|
49 |
+
The interface is customizable and includes styling for a better user experience. You can further customize it by modifying the code in `app.py`.
|
50 |
+
|
51 |
+
## Author
|
52 |
+
|
53 |
+
Developed by [Ajeetkumar Ukande].
|
54 |
+
|
55 |
|
56 |
Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference
|