Fralet commited on
Commit
2f02ad5
·
verified ·
1 Parent(s): 2992308

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -208,7 +208,7 @@ nli_model = AutoModelForSequenceClassification.from_pretrained('facebook/bart-la
208
  tokenizer = AutoTokenizer.from_pretrained('facebook/bart-large-mnli')
209
 
210
  premise = 'A few years ago, I was juggling a demanding job, volunteer commitments, and personal relationships, all while trying to manage chronic health issues. The challenge was overwhelming at times, but I approached it by prioritizing open communication with my employer and loved ones about my limits. I learned to delegate and accept help, which was difficult for me as I usually prefer to keep the peace by handling things myself. This experience taught me the importance of setting boundaries and the strength in vulnerability.'
211
- hypothesis = 'This example is Helper.'
212
 
213
  # Tokenize the input text pair
214
  inputs = tokenizer.encode(premise, hypothesis, return_tensors='pt', truncation_strategy='only_first').to(device)
 
208
  tokenizer = AutoTokenizer.from_pretrained('facebook/bart-large-mnli')
209
 
210
  premise = 'A few years ago, I was juggling a demanding job, volunteer commitments, and personal relationships, all while trying to manage chronic health issues. The challenge was overwhelming at times, but I approached it by prioritizing open communication with my employer and loved ones about my limits. I learned to delegate and accept help, which was difficult for me as I usually prefer to keep the peace by handling things myself. This experience taught me the importance of setting boundaries and the strength in vulnerability.'
211
+ hypothesis = 'This response is Helper personality.'
212
 
213
  # Tokenize the input text pair
214
  inputs = tokenizer.encode(premise, hypothesis, return_tensors='pt', truncation_strategy='only_first').to(device)