update enpoint names
Browse files
app.py
CHANGED
@@ -411,17 +411,17 @@ pdf_to_text = gr.Interface(
|
|
411 |
# gr.Textbox(placeholder="Extracted text from DOC or DOCX will appear here"),
|
412 |
# api_name="doc_or_docx_to_text",
|
413 |
# )
|
414 |
-
|
415 |
convert_doc_to_text,
|
416 |
gr.File(),
|
417 |
gr.Textbox(),
|
418 |
-
api_name="
|
419 |
)
|
420 |
-
|
421 |
extract_text_from_docx,
|
422 |
gr.File(),
|
423 |
gr.Textbox(),
|
424 |
-
api_name="
|
425 |
)
|
426 |
|
427 |
# pptx_or_ppt_to_text = gr.Interface(
|
@@ -470,7 +470,7 @@ url_parser = gr.Interface(
|
|
470 |
api_name="url_to_text",
|
471 |
)
|
472 |
demo = gr.TabbedInterface(
|
473 |
-
[pdf_to_img, pdf_to_text,
|
474 |
[
|
475 |
"PDF to Image",
|
476 |
"Extract PDF Text",
|
|
|
411 |
# gr.Textbox(placeholder="Extracted text from DOC or DOCX will appear here"),
|
412 |
# api_name="doc_or_docx_to_text",
|
413 |
# )
|
414 |
+
doc_to_text = gr.Interface(
|
415 |
convert_doc_to_text,
|
416 |
gr.File(),
|
417 |
gr.Textbox(),
|
418 |
+
api_name="doc_to_text"
|
419 |
)
|
420 |
+
docx_to_text = gr.Interface(
|
421 |
extract_text_from_docx,
|
422 |
gr.File(),
|
423 |
gr.Textbox(),
|
424 |
+
api_name="docx_to_text"
|
425 |
)
|
426 |
|
427 |
# pptx_or_ppt_to_text = gr.Interface(
|
|
|
470 |
api_name="url_to_text",
|
471 |
)
|
472 |
demo = gr.TabbedInterface(
|
473 |
+
[pdf_to_img, pdf_to_text, doc_to_text, docx_to_text , ppt_to_text, pptx_to_text, url_parser, str_to_json],
|
474 |
[
|
475 |
"PDF to Image",
|
476 |
"Extract PDF Text",
|