Update app.py
Browse files
app.py
CHANGED
@@ -7,7 +7,7 @@ import pandas as pd
|
|
7 |
import numpy as np
|
8 |
import IPython
|
9 |
import streamlit as st
|
10 |
-
import subprocess
|
11 |
from itertools import islice
|
12 |
import random
|
13 |
#from transformers import pipeline
|
@@ -15,15 +15,12 @@ from transformers import TapasTokenizer, TapasForQuestionAnswering
|
|
15 |
|
16 |
tf.get_logger().setLevel('ERROR')
|
17 |
|
18 |
-
#
|
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 |
#print(sys.executable)
|
22 |
-
|
23 |
-
except Exception as e:
|
24 |
-
|
25 |
|
26 |
-
#install('torch-scatter -f https://data.pyg.org/whl/torch-1.10.0+cu102.html')
|
27 |
|
28 |
model_name = 'google/tapas-base-finetuned-wtq'
|
29 |
#model_name = "table-question-answering"
|
|
|
7 |
import numpy as np
|
8 |
import IPython
|
9 |
import streamlit as st
|
10 |
+
#import subprocess
|
11 |
from itertools import islice
|
12 |
import random
|
13 |
#from transformers import pipeline
|
|
|
15 |
|
16 |
tf.get_logger().setLevel('ERROR')
|
17 |
|
18 |
+
#try:
|
|
|
|
|
19 |
#print(sys.executable)
|
20 |
+
# subprocess.check_call(["/home/user/.local/lib/python3.8", "-m", "pip", "install", 'torch-scatter','-f', 'https://data.pyg.org/whl/torch-1.10.0+cpu.html'])
|
21 |
+
#except Exception as e:
|
22 |
+
# print('Error..', str(e))
|
23 |
|
|
|
24 |
|
25 |
model_name = 'google/tapas-base-finetuned-wtq'
|
26 |
#model_name = "table-question-answering"
|