thuyentruong commited on
Commit
f41fbdd
·
verified ·
1 Parent(s): 080cdf3

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -46,7 +46,7 @@ def split_conj(text):
46
  return re.sub('(but|yet|although|however|nevertheless|on the other hand|still|though)', "|", text).split('|')
47
 
48
  def get_sentiment_from_llm(review_text):
49
- sentences = review_text.lower().split(".")
50
  """
51
  segments=[]
52
  for sen in sentences:
@@ -72,7 +72,7 @@ def get_sentiment_from_llm(review_text):
72
  "do_sample": False,
73
  }
74
 
75
- question_and_background = make_prompt(sentences)
76
  messages = [
77
  {"role": "system", "content": "You are a helpful AI assistant who helps to extract sentiments and keywords from given sentences."},
78
  {"role": "user", "content": question_and_background}
 
46
  return re.sub('(but|yet|although|however|nevertheless|on the other hand|still|though)', "|", text).split('|')
47
 
48
  def get_sentiment_from_llm(review_text):
49
+ #sentences = review_text.lower().split(".")
50
  """
51
  segments=[]
52
  for sen in sentences:
 
72
  "do_sample": False,
73
  }
74
 
75
+ question_and_background = make_prompt(review_text)
76
  messages = [
77
  {"role": "system", "content": "You are a helpful AI assistant who helps to extract sentiments and keywords from given sentences."},
78
  {"role": "user", "content": question_and_background}