Commit
·
3338e2e
1
Parent(s):
6ca9d11
Subindo arquivos3
Browse files- app.py +9 -2
- results/model.safetensors +1 -1
app.py
CHANGED
|
@@ -45,12 +45,19 @@ def classify_accent(audio):
|
|
| 45 |
except Exception as e:
|
| 46 |
return f"Erro ao processar o áudio: {str(e)}"
|
| 47 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 48 |
# Interface do Gradio
|
| 49 |
interface = gr.Interface(
|
| 50 |
fn=classify_accent,
|
| 51 |
inputs=gr.Audio(type="numpy"),
|
| 52 |
outputs="label",
|
| 53 |
-
title="Speech Accent Classifier (Portuguese-Brazilian) v1.
|
| 54 |
-
description=
|
| 55 |
)
|
|
|
|
| 56 |
interface.launch()
|
|
|
|
| 45 |
except Exception as e:
|
| 46 |
return f"Erro ao processar o áudio: {str(e)}"
|
| 47 |
|
| 48 |
+
# Interface do Gradio
|
| 49 |
+
description_html = """
|
| 50 |
+
<p>Test with recording or uploading an audio file. To test, I recommend a word.</p>
|
| 51 |
+
<p>Ramon Mayor Martins: <a href="https://rmayormartins.github.io/" target="_blank">Website</a> | <a href="https://huggingface.co/rmayormartins" target="_blank">Spaces</a></p>
|
| 52 |
+
"""
|
| 53 |
+
|
| 54 |
# Interface do Gradio
|
| 55 |
interface = gr.Interface(
|
| 56 |
fn=classify_accent,
|
| 57 |
inputs=gr.Audio(type="numpy"),
|
| 58 |
outputs="label",
|
| 59 |
+
title="Speech Accent Classifier (Portuguese-Brazilian) v1.3",
|
| 60 |
+
description=description_html
|
| 61 |
)
|
| 62 |
+
|
| 63 |
interface.launch()
|
results/model.safetensors
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
size 378302360
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:f804495132c0ba1d61ce5c3b8b7d6cc53b49eb3be8cf95357c0a57f78e495421
|
| 3 |
size 378302360
|