Spaces:
Sleeping
Sleeping
Update app.py
Browse files
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
|
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
|