hitz02 commited on
Commit
d99dd27
·
1 Parent(s): 45bd74b

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +6 -3
app.py CHANGED
@@ -16,9 +16,12 @@ from transformers import TapasTokenizer, TapasForQuestionAnswering
16
  tf.get_logger().setLevel('ERROR')
17
 
18
  #def install(package):
19
- subprocess.run("python -m pip install torch-scatter -f https://data.pyg.org/whl/torch-1.10.0+cu102.html", shell=True)
20
- #subprocess.check_call([sys.executable, "-m", "pip", "install", 'torch-scatter','-f', 'https://data.pyg.org/whl/torch-1.10.0+cu102.html'])
21
-
 
 
 
22
  #install('torch-scatter -f https://data.pyg.org/whl/torch-1.10.0+cu102.html')
23
 
24
  model_name = 'google/tapas-base-finetuned-wtq'
 
16
  tf.get_logger().setLevel('ERROR')
17
 
18
  #def install(package):
19
+ #subprocess.run("python -m pip install torch-scatter -f https://data.pyg.org/whl/torch-1.10.0+cu102.html", shell=True)
20
+ try:
21
+ subprocess.check_call([sys.executable, "-m", "pip", "install", 'torch-scatter','-f', 'https://data.pyg.org/whl/torch-1.10.0+cu102.html'])
22
+ except:
23
+ print('Error..')
24
+
25
  #install('torch-scatter -f https://data.pyg.org/whl/torch-1.10.0+cu102.html')
26
 
27
  model_name = 'google/tapas-base-finetuned-wtq'