kkpathak91 commited on
Commit
e69e8e4
1 Parent(s): 8e63b00

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +9 -8
app.py CHANGED
@@ -1,8 +1,9 @@
1
  # -*- coding: utf-8 -*-
2
 
3
  """
4
- @Author : karan kumar pathak
5
- @Contact : karan kumm
 
6
  @Description:
7
  """
8
 
@@ -29,11 +30,11 @@ config = {
29
  "n_gpu": torch.cuda.device_count(),
30
  }
31
 
32
- os.system('git clone https://github.com/kkpathak91/project_metch')
33
- os.system('rm -r project_metch/data/')
34
- os.system('rm -r project_metch/results/')
35
- os.system('rm -r project_metch/models/')
36
- os.system('mv project_metch/* ./')
37
 
38
  model_dir = snapshot_download('Jiangjie/loren')
39
  config['fc_dir'] = os.path.join(model_dir, 'fact_checking/roberta-large/')
@@ -142,4 +143,4 @@ iface = gr.Interface(
142
  'Error: Require Commonsense', 'Error: Evidence Retrieval'],
143
  enable_queue=True
144
  )
145
- iface.launch()
 
1
  # -*- coding: utf-8 -*-
2
 
3
  """
4
+ @Author : Jiangjie Chen
5
+ @Time : 2021/12/13 17:17
6
+ @Contact : jjchen19@fudan.edu.cn
7
  @Description:
8
  """
9
 
 
30
  "n_gpu": torch.cuda.device_count(),
31
  }
32
 
33
+ os.system('git clone https://github.com/jiangjiechen/LOREN/')
34
+ os.system('rm -r LOREN/data/')
35
+ os.system('rm -r LOREN/results/')
36
+ os.system('rm -r LOREN/models/')
37
+ os.system('mv LOREN/* ./')
38
 
39
  model_dir = snapshot_download('Jiangjie/loren')
40
  config['fc_dir'] = os.path.join(model_dir, 'fact_checking/roberta-large/')
 
143
  'Error: Require Commonsense', 'Error: Evidence Retrieval'],
144
  enable_queue=True
145
  )
146
+ iface.launch()