Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -99,7 +99,7 @@ def read_document(file_path, clean=True):
|
|
99 |
kind = filetype.guess(file_content)
|
100 |
|
101 |
if kind is None:
|
102 |
-
mime = "text"
|
103 |
else:
|
104 |
mime = kind.mime
|
105 |
|
@@ -290,7 +290,7 @@ iface = gr.Interface(
|
|
290 |
gr.Checkbox(label="Clean Text", value=True),
|
291 |
],
|
292 |
outputs=[
|
293 |
-
gr.
|
294 |
gr.Number(label="Document Length (characters)"),
|
295 |
],
|
296 |
title="Enhanced File and Web Page Processor for Hugging Face Chat Tools",
|
|
|
99 |
kind = filetype.guess(file_content)
|
100 |
|
101 |
if kind is None:
|
102 |
+
mime = "text/html"
|
103 |
else:
|
104 |
mime = kind.mime
|
105 |
|
|
|
290 |
gr.Checkbox(label="Clean Text", value=True),
|
291 |
],
|
292 |
outputs=[
|
293 |
+
gr.Markdown(label="Document Content/Image Markdown/Web Page Content"),
|
294 |
gr.Number(label="Document Length (characters)"),
|
295 |
],
|
296 |
title="Enhanced File and Web Page Processor for Hugging Face Chat Tools",
|