NursNurs commited on
Commit
4e18247
·
1 Parent(s): 16e64e7

Changed the moedl to the newly trained one

Browse files
Files changed (1) hide show
  1. app.py +6 -2
app.py CHANGED
@@ -17,9 +17,13 @@ from nltk.tokenize import word_tokenize
17
  @st.cache_resource
18
  def get_models(llama=False):
19
  st.write('Loading the model...')
20
- config = PeftConfig.from_pretrained("NursNurs/T5ForReverseDictionary")
 
 
 
 
21
  model = AutoModelForSeq2SeqLM.from_pretrained("google/flan-t5-large")
22
- model = PeftModel.from_pretrained(model, "NursNurs/T5ForReverseDictionary")
23
 
24
  tokenizer = AutoTokenizer.from_pretrained("google/flan-t5-large")
25
 
 
17
  @st.cache_resource
18
  def get_models(llama=False):
19
  st.write('Loading the model...')
20
+ # config = PeftConfig.from_pretrained("NursNurs/T5ForReverseDictionary")
21
+ # model = AutoModelForSeq2SeqLM.from_pretrained("google/flan-t5-large")
22
+ # model = PeftModel.from_pretrained(model, "NursNurs/T5ForReverseDictionary")
23
+
24
+ config = PeftConfig.from_pretrained("YouNameIt/T5ForReverseDictionary_prefix_tuned")
25
  model = AutoModelForSeq2SeqLM.from_pretrained("google/flan-t5-large")
26
+ model = PeftModel.from_pretrained(model, "YouNameIt/T5ForReverseDictionary_prefix_tuned")
27
 
28
  tokenizer = AutoTokenizer.from_pretrained("google/flan-t5-large")
29