teaevo commited on
Commit
d002017
·
1 Parent(s): 1f17f08

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +5 -1
app.py CHANGED
@@ -2,9 +2,13 @@ import gradio as gr
2
  from transformers import TapexTokenizer, BartForConditionalGeneration
3
  import pandas as pd
4
 
 
5
  #model_name = "microsoft/tapex-large-finetuned-wikisql" # You can change this to any other model from the list above
 
 
6
  #model_name = "microsoft/tapex-large-finetuned-wtq"
7
- model_name = "microsoft/tapex-base-finetuned-wikisql"
 
8
  tokenizer = TapexTokenizer.from_pretrained(model_name)
9
  model = BartForConditionalGeneration.from_pretrained(model_name)
10
 
 
2
  from transformers import TapexTokenizer, BartForConditionalGeneration
3
  import pandas as pd
4
 
5
+ #wikisql take longer to process
6
  #model_name = "microsoft/tapex-large-finetuned-wikisql" # You can change this to any other model from the list above
7
+ #model_name = "microsoft/tapex-base-finetuned-wikisql"
8
+
9
  #model_name = "microsoft/tapex-large-finetuned-wtq"
10
+ model_name = "microsoft/tapex-base-finetuned-wtq"
11
+
12
  tokenizer = TapexTokenizer.from_pretrained(model_name)
13
  model = BartForConditionalGeneration.from_pretrained(model_name)
14