kevinhug commited on
Commit
281e32d
·
1 Parent(s): b176344

fine tune LLM

Browse files
Files changed (1) hide show
  1. app.py +6 -3
app.py CHANGED
@@ -29,7 +29,9 @@ def similar(issue):
29
  FINE TUNE LLM LIKE SCORE
30
  '''
31
  from fastai.text.all import *
32
- learn = load_learner('./banks_txt_like.pkl')
 
 
33
  def like(issue):
34
  pred,idx,probs = learn.predict(issue)
35
  return pred
@@ -43,8 +45,9 @@ https://www.gradio.app/docs/interface
43
  with gr.Blocks() as demo:
44
  gr.Markdown("""Enhancing Customer Engagement and Operational Efficiency with NLP
45
  =========
46
- LLM
47
- Semantic Similarity Document Search (SSDS)
 
48
 
49
  Data Scientist: Kevin Wong, [email protected], 416-903-7937
50
 
 
29
  FINE TUNE LLM LIKE SCORE
30
  '''
31
  from fastai.text.all import *
32
+ import pathlib
33
+ p=pathlib.Path('./banks_txt_like.pkl').resolve()
34
+ learn = load_learner(p)
35
  def like(issue):
36
  pred,idx,probs = learn.predict(issue)
37
  return pred
 
45
  with gr.Blocks() as demo:
46
  gr.Markdown("""Enhancing Customer Engagement and Operational Efficiency with NLP
47
  =========
48
+
49
+ 1) Semantic Similarity Document Search (SSDS)
50
+ 2) Fine Tune LLM
51
 
52
  Data Scientist: Kevin Wong, [email protected], 416-903-7937
53