Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -57,7 +57,7 @@ def transcribe_image(file):
|
|
57 |
# === Interface ===
|
58 |
with gr.Blocks() as app:
|
59 |
gr.Markdown("## Handwritten Note Transcriber\nUpload a handwritten note image for professional transcription.")
|
60 |
-
input_file = gr.File(label="Upload image", type="
|
61 |
output_text = gr.Textbox(label="Transcription Output", lines=30)
|
62 |
input_file.change(fn=transcribe_image, inputs=input_file, outputs=output_text)
|
63 |
|
|
|
57 |
# === Interface ===
|
58 |
with gr.Blocks() as app:
|
59 |
gr.Markdown("## Handwritten Note Transcriber\nUpload a handwritten note image for professional transcription.")
|
60 |
+
input_file = gr.File(label="Upload image", type="binary", file_types=[".jpg", ".jpeg", ".png"])
|
61 |
output_text = gr.Textbox(label="Transcription Output", lines=30)
|
62 |
input_file.change(fn=transcribe_image, inputs=input_file, outputs=output_text)
|
63 |
|