Spaces:
Build error
Build error
Update app.py
Browse files
app.py
CHANGED
@@ -193,7 +193,7 @@ from PIL import Image
|
|
193 |
|
194 |
def save_to_pdf(text, summary):
|
195 |
pdf = FPDF()
|
196 |
-
pdf.add_page()
|
197 |
pdf.set_font("Arial", size=12)
|
198 |
|
199 |
if text:
|
@@ -211,14 +211,15 @@ def save_to_pdf(text, summary):
|
|
211 |
|
212 |
banner_html = """
|
213 |
<div style="text-align: center;">
|
214 |
-
<img src="https://huggingface.co/spaces/camparchimedes/transcription_app/
|
215 |
</div>
|
216 |
"""
|
217 |
|
|
|
218 |
iface = gr.Interface(
|
219 |
fn=transcribe_audio,
|
220 |
inputs=gr.Audio(type="filepath"),
|
221 |
-
outputs=gr.Textbox(label="Transcription"),
|
222 |
title="SW Transcription App",
|
223 |
description="Upload an audio file to get the text",
|
224 |
theme="default",
|
|
|
193 |
|
194 |
def save_to_pdf(text, summary):
|
195 |
pdf = FPDF()
|
196 |
+
pdf.add_page()alt="Banner Image"
|
197 |
pdf.set_font("Arial", size=12)
|
198 |
|
199 |
if text:
|
|
|
211 |
|
212 |
banner_html = """
|
213 |
<div style="text-align: center;">
|
214 |
+
<img src="https://huggingface.co/spaces/camparchimedes/transcription_app/resolve/main/Olas%20AudioSwitch%20Shop.png" alt="Banner Image" width="100%" height="auto">
|
215 |
</div>
|
216 |
"""
|
217 |
|
218 |
+
|
219 |
iface = gr.Interface(
|
220 |
fn=transcribe_audio,
|
221 |
inputs=gr.Audio(type="filepath"),
|
222 |
+
outputs=gr.Textbox(label="Transcription"),
|
223 |
title="SW Transcription App",
|
224 |
description="Upload an audio file to get the text",
|
225 |
theme="default",
|