Update app.py
Browse files
app.py
CHANGED
@@ -15,10 +15,10 @@ from transformers import TapasTokenizer, TapasForQuestionAnswering
|
|
15 |
|
16 |
tf.get_logger().setLevel('ERROR')
|
17 |
|
18 |
-
def install(package):
|
19 |
-
|
20 |
|
21 |
-
install('torch-scatter -f https://data.pyg.org/whl/torch-1.10.0+cu102.html')
|
22 |
|
23 |
model_name = 'google/tapas-base-finetuned-wtq'
|
24 |
#model_name = "table-question-answering"
|
|
|
15 |
|
16 |
tf.get_logger().setLevel('ERROR')
|
17 |
|
18 |
+
#def install(package):
|
19 |
+
subprocess.call([sys.executable, "-m", "pip", "install", 'torch-scatter','-f', 'https://data.pyg.org/whl/torch-1.10.0+cu102.html'])
|
20 |
|
21 |
+
#install('torch-scatter -f https://data.pyg.org/whl/torch-1.10.0+cu102.html')
|
22 |
|
23 |
model_name = 'google/tapas-base-finetuned-wtq'
|
24 |
#model_name = "table-question-answering"
|