Abbasid commited on
Commit
b70e9c7
1 Parent(s): 36bf59e

Update TableQAGradio.py

Browse files
Files changed (1) hide show
  1. TableQAGradio.py +7 -14
TableQAGradio.py CHANGED
@@ -45,21 +45,21 @@ mswtqa = pipeline(task="table-question-answering", model="microsoft/tapex-large-
45
  # In[6]:
46
 
47
 
48
- table2 = pd.read_excel("/content/Sample.xlsx").astype(str)
49
- table3 = table2.head(20)
50
 
51
 
52
  # In[7]:
53
 
54
 
55
- table3
56
 
57
 
58
  # In[ ]:
59
 
60
 
61
  #t4 = table3.reset_index()
62
- table4
63
 
64
 
65
  # In[9]:
@@ -75,15 +75,8 @@ query5 = "how many S2 values are there"
75
  # In[11]:
76
 
77
 
78
- result = tsqa(table=table3, query=query5)["answer"]
79
- result
80
-
81
-
82
- # In[12]:
83
-
84
-
85
- from collections import Counter
86
- Counter(result)
87
 
88
 
89
  # In[13]:
@@ -95,7 +88,7 @@ Counter(result)
95
  # In[14]:
96
 
97
 
98
- mswtqa(table=table3, query=query5)["answer"]
99
 
100
 
101
  # In[15]:
 
45
  # In[6]:
46
 
47
 
48
+ # table2 = pd.read_excel("/content/Sample.xlsx").astype(str)
49
+ # table3 = table2.head(20)
50
 
51
 
52
  # In[7]:
53
 
54
 
55
+ # table3
56
 
57
 
58
  # In[ ]:
59
 
60
 
61
  #t4 = table3.reset_index()
62
+ # table4
63
 
64
 
65
  # In[9]:
 
75
  # In[11]:
76
 
77
 
78
+ # result = tsqa(table=table3, query=query5)["answer"]
79
+ # result
 
 
 
 
 
 
 
80
 
81
 
82
  # In[13]:
 
88
  # In[14]:
89
 
90
 
91
+ # mswtqa(table=table3, query=query5)["answer"]
92
 
93
 
94
  # In[15]: