isimorfizam commited on
Commit
9734990
1 Parent(s): 8f6f820

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +13 -5
app.py CHANGED
@@ -61,8 +61,8 @@ def load_model():
61
  #tokenizer=llama_cpp.llama_tokenizer.LlamaHFTokenizer.from_pretrained("Qwen/Qwen1.5-0.5B"),
62
  embedding=True,
63
  verbose=False,
64
- n_ctx=2048,
65
- n_threads = 2,
66
  cache_dir='./model_cached'
67
  )
68
 
@@ -128,16 +128,24 @@ data_load_state.text('Loading data...done!')
128
  # Answer :
129
  # """
130
 
 
 
 
 
 
 
 
 
 
131
  def prompt_formatter(reviews):
132
  return f"""You are a summarization bot.
133
- You will receive reviews of Clockify from different users.
134
- You will create one paragraph with the summarization of what the reviews say about Clockify.
135
  Reviews are listed below.
136
  Do not make things up. Use only information from reviews.
137
  Reviews: {reviews}
138
  Answer :
139
  """
140
-
141
  def mirror_mirror(inputs, prompt_formatter):
142
  prompt = prompt_formatter(inputs)
143
  ######### LLAMA2_Q4
 
61
  #tokenizer=llama_cpp.llama_tokenizer.LlamaHFTokenizer.from_pretrained("Qwen/Qwen1.5-0.5B"),
62
  embedding=True,
63
  verbose=False,
64
+ n_ctx=1024,
65
+ n_threads = 3,
66
  cache_dir='./model_cached'
67
  )
68
 
 
128
  # Answer :
129
  # """
130
 
131
+ # def prompt_formatter(reviews):
132
+ # return f"""You are a summarization bot.
133
+ # You will receive reviews of Clockify from different users.
134
+ # You will create one paragraph with the summarization of what the reviews say about Clockify.
135
+ # Reviews are listed below.
136
+ # Do not make things up. Use only information from reviews.
137
+ # Reviews: {reviews}
138
+ # Answer :
139
+ # """
140
  def prompt_formatter(reviews):
141
  return f"""You are a summarization bot.
142
+ You will receive reviews of Clockify from different users.
143
+ You will summarize what are good and bad Clockify qualities according to all reviews.
144
  Reviews are listed below.
145
  Do not make things up. Use only information from reviews.
146
  Reviews: {reviews}
147
  Answer :
148
  """
 
149
  def mirror_mirror(inputs, prompt_formatter):
150
  prompt = prompt_formatter(inputs)
151
  ######### LLAMA2_Q4