Chan-Y commited on
Commit
9e89ef8
·
verified ·
1 Parent(s): a43e6d5

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -20,7 +20,7 @@ llm = HuggingFaceEndpoint(
20
  temperature=0.5,
21
  do_sample=False,
22
  )
23
- llm_engine_hf = ChatHuggingFace(llm=llm)
24
 
25
  def read_pdf(file_path):
26
  logger.info("Reading a PDF file")
@@ -54,7 +54,7 @@ def read_txt(file_path):
54
  logger.error(error_message)
55
  return error_message
56
 
57
- def summarize(file, n_words):
58
  global llm
59
  # Read the content of the uploaded file
60
  file_path = file.name
 
20
  temperature=0.5,
21
  do_sample=False,
22
  )
23
+ #llm_engine_hf = ChatHuggingFace(llm=llm)
24
 
25
  def read_pdf(file_path):
26
  logger.info("Reading a PDF file")
 
54
  logger.error(error_message)
55
  return error_message
56
 
57
+ def summarize(file):
58
  global llm
59
  # Read the content of the uploaded file
60
  file_path = file.name