Spaces:
Build error
Build error
Update app.py
Browse files
app.py
CHANGED
|
@@ -1,4 +1,4 @@
|
|
| 1 |
-
import os
|
| 2 |
import io
|
| 3 |
import gradio as gr
|
| 4 |
from PIL import Image
|
|
@@ -42,11 +42,11 @@ def run_legato_omr(image):
|
|
| 42 |
"the model page doesn't require separate terms acceptance."
|
| 43 |
)
|
| 44 |
|
| 45 |
-
# 3. Present UI layout blocks
|
| 46 |
demo = gr.Interface(
|
| 47 |
fn=run_legato_omr,
|
| 48 |
inputs=gr.Image(type="pil", label="1. Upload Sheet Music Snippet"),
|
| 49 |
-
outputs=gr.Textbox(label="2. LEGATO Output (ABC Notation Text)"
|
| 50 |
title="🎼 LEGATO End-to-End OMR Engine (API Optimized)",
|
| 51 |
description="Proxied through Hugging Face's serverless pipeline to bypass local 16GB CPU limits. Transcriptions finish in seconds."
|
| 52 |
)
|
|
|
|
| 1 |
+
import os
|
| 2 |
import io
|
| 3 |
import gradio as gr
|
| 4 |
from PIL import Image
|
|
|
|
| 42 |
"the model page doesn't require separate terms acceptance."
|
| 43 |
)
|
| 44 |
|
| 45 |
+
# 3. Present UI layout blocks - FIXED: Removed show_copy_button for backwards compatibility
|
| 46 |
demo = gr.Interface(
|
| 47 |
fn=run_legato_omr,
|
| 48 |
inputs=gr.Image(type="pil", label="1. Upload Sheet Music Snippet"),
|
| 49 |
+
outputs=gr.Textbox(label="2. LEGATO Output (ABC Notation Text)"),
|
| 50 |
title="🎼 LEGATO End-to-End OMR Engine (API Optimized)",
|
| 51 |
description="Proxied through Hugging Face's serverless pipeline to bypass local 16GB CPU limits. Transcriptions finish in seconds."
|
| 52 |
)
|