Spaces:
Sleeping
Sleeping
Abid
commited on
Commit
β’
0f64412
1
Parent(s):
8b3f196
duplicate code removed
Browse files- Gradio/app.py +0 -33
Gradio/app.py
CHANGED
@@ -47,39 +47,6 @@ This model is a fine-tuned version of facebook/wav2vec2-xls-r-300m on the common
|
|
47 |
|
48 |
article = "<p style='text-align: center'><a href='https://dagshub.com/kingabzpro/Urdu-ASR-SOTA' target='_blank'>Source Code on DagsHub</a></p><p style='text-align: center'><a href='https://huggingface.co/blog/fine-tune-xlsr-wav2vec2' target='_blank'>Fine-tuning XLS-R for Multi-Lingual ASR with π€ Transformers</a></p></center></p>"
|
49 |
|
50 |
-
examples = [
|
51 |
-
["examples/00008.jpg"],
|
52 |
-
["examples/00045.jpg"],
|
53 |
-
]
|
54 |
-
favicon = "examples/favicon.ico"
|
55 |
-
thumbnail = "examples/SavtaDepth.png"
|
56 |
-
|
57 |
-
|
58 |
-
def main():
|
59 |
-
iface = gr.Interface(
|
60 |
-
gen,
|
61 |
-
gr.inputs.Image(shape=(640, 480), type="numpy"),
|
62 |
-
"image",
|
63 |
-
title=title,
|
64 |
-
flagging_options=["incorrect", "worst", "ambiguous"],
|
65 |
-
allow_flagging="manual",
|
66 |
-
flagging_callback=hf_writer,
|
67 |
-
description=description,
|
68 |
-
article=article,
|
69 |
-
examples=examples,
|
70 |
-
theme="peach",
|
71 |
-
allow_screenshot=True,
|
72 |
-
)
|
73 |
-
|
74 |
-
iface.launch(enable_queue=True)
|
75 |
-
|
76 |
-
|
77 |
-
# enable_queue=True,auth=("admin", "pass1234")
|
78 |
-
|
79 |
-
if __name__ == "__main__":
|
80 |
-
main()
|
81 |
-
|
82 |
-
|
83 |
examples = [["Sample/sample1.mp3"], ["Sample/sample2.mp3"], ["Sample/sample3.mp3"]]
|
84 |
|
85 |
|
|
|
47 |
|
48 |
article = "<p style='text-align: center'><a href='https://dagshub.com/kingabzpro/Urdu-ASR-SOTA' target='_blank'>Source Code on DagsHub</a></p><p style='text-align: center'><a href='https://huggingface.co/blog/fine-tune-xlsr-wav2vec2' target='_blank'>Fine-tuning XLS-R for Multi-Lingual ASR with π€ Transformers</a></p></center></p>"
|
49 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
50 |
examples = [["Sample/sample1.mp3"], ["Sample/sample2.mp3"], ["Sample/sample3.mp3"]]
|
51 |
|
52 |
|