thuyentruong commited on
Commit
4b09d8f
1 Parent(s): fbff7a3

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -1
app.py CHANGED
@@ -34,8 +34,9 @@ def get_sentiment_from_llm(review_text):
34
  segments=segments+split_conj(sen)
35
  ls_outputs=[]
36
 
37
- segments= [x if len(x)>=5 for x in segments]
38
  print(segments)
 
39
  for seg in segments:
40
  input = make_prompt(seg)
41
  inputs = tokenizer(input, return_tensors='pt')
 
34
  segments=segments+split_conj(sen)
35
  ls_outputs=[]
36
 
37
+ segments= [x for x in segments if len(x)>=5]
38
  print(segments)
39
+
40
  for seg in segments:
41
  input = make_prompt(seg)
42
  inputs = tokenizer(input, return_tensors='pt')