KingNish commited on
Commit
55203fb
1 Parent(s): 7de02ad

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
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.Textbox(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",
 
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",