JAlexis commited on
Commit
08a8867
·
1 Parent(s): 1bcbf9d

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +20 -1
README.md CHANGED
@@ -1,3 +1,21 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
  from transformers.pipelines import pipeline
2
  model_name = "JAlexis/PruebaBert"
3
  nlp = pipeline('question-answering', model=model_name, tokenizer=model_name)
@@ -7,4 +25,5 @@ inputs = {
7
  'question': 'How can I protect myself against covid-19?',
8
  'context': ' ',
9
  }
10
- nlp(inputs)
 
 
1
+ ---
2
+ language: en
3
+
4
+
5
+ widget:
6
+ - text: "How can I protect myself against covid-19?"
7
+ context: "Preventative measures consist of recommendations to wear a mask in public, maintain social distancing of at least six feet, wash hands regularly, and use hand sanitizer. To facilitate this aim, we adapt the conceptual model and measures of Liao et al. [6] to the current context of the COVID-19 pandemic and the culture of the USA. Applying this model in a different time and context provides an opportunity to make comparisons of reactions to information sources across a decade of evolving attitudes toward media and government, between two cultures (Hong Kong vs. the USA), and between two considerably different global pandemics (H1N1 vs. COVID-19)."
8
+ - text: "How can I protect myself against covid-19?"
9
+ context: " "
10
+
11
+ ---
12
+
13
+ ## Model description
14
+ This model was obtained by fine-tuning deepset/bert-base-cased-squad2 on Cord19 Dataset.
15
+
16
+ ## How to use
17
+
18
+ ```python
19
  from transformers.pipelines import pipeline
20
  model_name = "JAlexis/PruebaBert"
21
  nlp = pipeline('question-answering', model=model_name, tokenizer=model_name)
 
25
  'question': 'How can I protect myself against covid-19?',
26
  'context': ' ',
27
  }
28
+ nlp(inputs)
29
+ ```