Spaces:
Runtime error
Runtime error
alitavanaali
commited on
Commit
•
7ea4187
1
Parent(s):
67e7382
Update app.py
Browse files
app.py
CHANGED
@@ -349,14 +349,14 @@ def completepreprocess(pdffile):
|
|
349 |
return im2,myDataFrame
|
350 |
|
351 |
|
352 |
-
title = "Interactive demo:
|
353 |
-
description = "
|
354 |
|
355 |
css = """.output_image, .input_image {height: 600px !important}"""
|
356 |
#examples = [["461BHH69.PDF"],["AP-481-RF.PDF"],["DP-095-ML.PDF"],["DQ-231-LL.PDF"],["FK-941-ET.PDF"], ["FL-078-NH.PDF"]
|
357 |
# ,["14ZZ69.PDF"],["74BCA69.PDF"],["254BEG69.PDF"],["761BJQ69.PDF"],["AB-486-EH.PDF"],["AZ-211-ZA.PDF"], ["CY-073-YV.PDF"]]
|
358 |
# ["744BJQ69.PDF"], ['tarros_2.jpg'],
|
359 |
-
examples = [['
|
360 |
|
361 |
iface = gr.Interface(fn=completepreprocess,
|
362 |
#inputs=gr.inputs.Image(type="pil",optional=True,label="upload file"),
|
|
|
349 |
return im2,myDataFrame
|
350 |
|
351 |
|
352 |
+
title = "Interactive demo: Music Information Extraction model"
|
353 |
+
description = "Music Information Extraction - We used Microsoft’s LayoutLMv3 trained on Our Music Dataset through csv's to predict the labels. To use it, simply upload a PDF or use the example PDF below and click ‘Submit’. Results will show up in a few seconds. If you want to make the output bigger, right-click on it and select ‘Open image in new tab’.Train =16 ,Test =7"
|
354 |
|
355 |
css = """.output_image, .input_image {height: 600px !important}"""
|
356 |
#examples = [["461BHH69.PDF"],["AP-481-RF.PDF"],["DP-095-ML.PDF"],["DQ-231-LL.PDF"],["FK-941-ET.PDF"], ["FL-078-NH.PDF"]
|
357 |
# ,["14ZZ69.PDF"],["74BCA69.PDF"],["254BEG69.PDF"],["761BJQ69.PDF"],["AB-486-EH.PDF"],["AZ-211-ZA.PDF"], ["CY-073-YV.PDF"]]
|
358 |
# ["744BJQ69.PDF"], ['tarros_2.jpg'],
|
359 |
+
examples = [['test1.jpg'], ['doc1.pdf'], ['doc1.2.pdf']]
|
360 |
|
361 |
iface = gr.Interface(fn=completepreprocess,
|
362 |
#inputs=gr.inputs.Image(type="pil",optional=True,label="upload file"),
|