Update app.py
Browse files
app.py
CHANGED
@@ -1,19 +1,12 @@
|
|
1 |
-
import
|
2 |
-
from dotenv import load_dotenv
|
3 |
-
from subprocess import Popen
|
4 |
-
load_dotenv()
|
5 |
|
6 |
-
|
7 |
-
|
8 |
-
worker.wait()
|
9 |
|
10 |
-
|
|
|
11 |
|
12 |
-
|
13 |
-
# return "Hello " + name + "!!"
|
14 |
-
|
15 |
-
#iface = gr.Interface(fn=greet, inputs="text", outputs="text")
|
16 |
-
#iface.launch()
|
17 |
|
18 |
#https://mercury-docs.readthedocs.io/en/latest/deploy/hugging-face-spaces/
|
19 |
#https://huggingface.co/spaces/pplonski/deploy-mercury
|
|
|
1 |
+
import gradio as gr
|
|
|
|
|
|
|
2 |
|
3 |
+
def greet(name):
|
4 |
+
return "Hello " + name + "!!"
|
|
|
5 |
|
6 |
+
iface = gr.Interface(fn=greet, inputs="text", outputs="text")
|
7 |
+
iface.launch()
|
8 |
|
9 |
+
gr.Interface.load("models/carlosdanielhernandezmena/wav2vec2-large-xlsr-53-icelandic-ep10-1000h").launch()
|
|
|
|
|
|
|
|
|
10 |
|
11 |
#https://mercury-docs.readthedocs.io/en/latest/deploy/hugging-face-spaces/
|
12 |
#https://huggingface.co/spaces/pplonski/deploy-mercury
|