hitz02 commited on
Commit
e820636
1 Parent(s): 5a8e803

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +5 -8
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
- #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
  #print(sys.executable)
22
- 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'])
23
- except Exception as e:
24
- print('Error..', str(e))
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"