Spaces:
Sleeping
Sleeping
Commit
·
9f75b50
1
Parent(s):
c5a25e1
adding app
Browse files
app.py
CHANGED
|
@@ -115,7 +115,7 @@ def document_loader(temperature,max_tokens,api_key,model_name,file_path):
|
|
| 115 |
|
| 116 |
if converted_txt:
|
| 117 |
print("Document Processed ..")
|
| 118 |
-
texts = process_documents(converted_txt)
|
| 119 |
lines = summarize_data(docs=texts,llm_model=model)
|
| 120 |
return lines
|
| 121 |
else:
|
|
@@ -135,4 +135,4 @@ iface = gr.Interface(
|
|
| 135 |
description ="Summarize your PDF Document having Image • HuggingFace",
|
| 136 |
)
|
| 137 |
|
| 138 |
-
iface.launch()
|
|
|
|
| 115 |
|
| 116 |
if converted_txt:
|
| 117 |
print("Document Processed ..")
|
| 118 |
+
texts = process_documents(texts=converted_txt)
|
| 119 |
lines = summarize_data(docs=texts,llm_model=model)
|
| 120 |
return lines
|
| 121 |
else:
|
|
|
|
| 135 |
description ="Summarize your PDF Document having Image • HuggingFace",
|
| 136 |
)
|
| 137 |
|
| 138 |
+
iface.launch()
|