kinit-tomassako commited on
Commit
05527ee
1 Parent(s): eaef024

Save new datacard

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -13,8 +13,8 @@ import re
13
  os.environ['CURL_CA_BUNDLE'] = ''
14
  description = "Vera - Claim detection"
15
  title = "Vera - Claim detection & Summary"
16
- #HF_TOKEN = os.getenv('ver_claimdetection_demo')
17
- #hf_writer = gr.HuggingFaceDatasetSaver(HF_TOKEN, "ver_claimdetection_demo")
18
 
19
  # JSON_DATASET_DIR = Path("json_dataset")
20
  # JSON_DATASET_DIR.mkdir(parents=True, exist_ok=True)
@@ -125,7 +125,7 @@ ver_claimdetection_demo = gr.Interface(
125
  description=description, #"Check out the dataset at: [https://huggingface.co/datasets/kinit-tomassako/ver_claimdetection_demo](https://huggingface.co/datasets/kinit-tomassako/ver_claimdetection_demo)",
126
  allow_flagging="manual",
127
  flagging_options=["Correct", "Incorrect", "Ambiguous"],
128
- # flagging_callback=hf_writer,
129
  examples=[
130
  ["The novel SARS-CoV-2 coronavirus that emerged in the city of Wuhan, China, last year and has since caused a large scale COVID-19 epidemic and spread to more than 70 other countries is the product of natural evolution, according to findings published today in the journal Nature Medicine. The analysis of public genome sequence data from SARS-CoV-2 and related viruses found no evidence that the virus was made in a laboratory or otherwise engineered. Coronaviruses are a large family of viruses that can cause illnesses ranging widely in severity. The first known severe illness caused by a coronavirus emerged with the 2003 Severe Acute Respiratory Syndrome (SARS) epidemic in China. A second outbreak of severe illness began in 2012 in Saudi Arabia with the Middle East Respiratory Syndrome (MERS). On December 31 of last year, Chinese authorities alerted the World Health Organization of an outbreak of a novel strain of coronavirus causing severe illness, which was subsequently named SARS-CoV-2. As of February 20, 2020, nearly 167,500 COVID-19 cases have been documented, although many more mild cases have likely gone undiagnosed. The virus has killed over 6,600 people. Shortly after the epidemic began, Chinese scientists sequenced the genome of SARS-CoV-2 and made the data available to researchers worldwide. The resulting genomic sequence data has shown that Chinese authorities rapidly detected the epidemic and that the number of COVID-19 cases have been increasing because of human to human transmission after a single introduction into the human population. Andersen and collaborators at several other research institutions used this sequencing data to explore the origins and evolution of SARS-CoV-2 by focusing in on several tell-tale features of the virus. The scientists analyzed the genetic template for spike proteins, armatures on the outside of the virus that it uses to grab and penetrate the outer walls of human and animal cells.", "Mdeberta"],
131
  ["I do not know. Of course we can. The novel SARS-CoV-2 coronavirus emerged in the city of Wuhan, China, last year.", "Xlm-Roberta"],
 
13
  os.environ['CURL_CA_BUNDLE'] = ''
14
  description = "Vera - Claim detection"
15
  title = "Vera - Claim detection & Summary"
16
+ HF_TOKEN = os.getenv('ver_claimdetection_demo')
17
+ hf_writer = gr.HuggingFaceDatasetSaver(HF_TOKEN, "ver_claimdetection_demo2")
18
 
19
  # JSON_DATASET_DIR = Path("json_dataset")
20
  # JSON_DATASET_DIR.mkdir(parents=True, exist_ok=True)
 
125
  description=description, #"Check out the dataset at: [https://huggingface.co/datasets/kinit-tomassako/ver_claimdetection_demo](https://huggingface.co/datasets/kinit-tomassako/ver_claimdetection_demo)",
126
  allow_flagging="manual",
127
  flagging_options=["Correct", "Incorrect", "Ambiguous"],
128
+ flagging_callback=hf_writer,
129
  examples=[
130
  ["The novel SARS-CoV-2 coronavirus that emerged in the city of Wuhan, China, last year and has since caused a large scale COVID-19 epidemic and spread to more than 70 other countries is the product of natural evolution, according to findings published today in the journal Nature Medicine. The analysis of public genome sequence data from SARS-CoV-2 and related viruses found no evidence that the virus was made in a laboratory or otherwise engineered. Coronaviruses are a large family of viruses that can cause illnesses ranging widely in severity. The first known severe illness caused by a coronavirus emerged with the 2003 Severe Acute Respiratory Syndrome (SARS) epidemic in China. A second outbreak of severe illness began in 2012 in Saudi Arabia with the Middle East Respiratory Syndrome (MERS). On December 31 of last year, Chinese authorities alerted the World Health Organization of an outbreak of a novel strain of coronavirus causing severe illness, which was subsequently named SARS-CoV-2. As of February 20, 2020, nearly 167,500 COVID-19 cases have been documented, although many more mild cases have likely gone undiagnosed. The virus has killed over 6,600 people. Shortly after the epidemic began, Chinese scientists sequenced the genome of SARS-CoV-2 and made the data available to researchers worldwide. The resulting genomic sequence data has shown that Chinese authorities rapidly detected the epidemic and that the number of COVID-19 cases have been increasing because of human to human transmission after a single introduction into the human population. Andersen and collaborators at several other research institutions used this sequencing data to explore the origins and evolution of SARS-CoV-2 by focusing in on several tell-tale features of the virus. The scientists analyzed the genetic template for spike proteins, armatures on the outside of the virus that it uses to grab and penetrate the outer walls of human and animal cells.", "Mdeberta"],
131
  ["I do not know. Of course we can. The novel SARS-CoV-2 coronavirus emerged in the city of Wuhan, China, last year.", "Xlm-Roberta"],