Update app.py
Browse files
app.py
CHANGED
@@ -1,20 +1,8 @@
|
|
1 |
-
# -*- coding: utf-8 -*-
|
2 |
-
"""Gradio-Interface.ipynb
|
3 |
-
|
4 |
-
Automatically generated by Colab.
|
5 |
-
|
6 |
-
Original file is located at
|
7 |
-
https://colab.research.google.com/drive/1uTpztep2rUf45OfbHkJRv-8XlDZUzH6j
|
8 |
-
"""
|
9 |
-
|
10 |
from transformers import pipeline
|
11 |
|
12 |
audioclassifier = pipeline(task="automatic-speech-recognition", model="dreahim/whisper-small-Egyptian_ASR_3train_2dev_v1")
|
13 |
|
14 |
-
!pip install gradio
|
15 |
|
16 |
import gradio as gr
|
17 |
|
18 |
-
gr.Interface.from_pipeline(audioclassifier).launch()
|
19 |
-
|
20 |
-
!gradio deploy
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
from transformers import pipeline
|
2 |
|
3 |
audioclassifier = pipeline(task="automatic-speech-recognition", model="dreahim/whisper-small-Egyptian_ASR_3train_2dev_v1")
|
4 |
|
|
|
5 |
|
6 |
import gradio as gr
|
7 |
|
8 |
+
gr.Interface.from_pipeline(audioclassifier).launch()
|
|
|
|