clr commited on
Commit
dd2b02c
·
1 Parent(s): b14c3e1

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +6 -13
app.py CHANGED
@@ -1,19 +1,12 @@
1
- import os
2
- from dotenv import load_dotenv
3
- from subprocess import Popen
4
- load_dotenv()
5
 
6
- command = ["mercury", "run", f"0.0.0.0:{os.environ.get('PORT', 7860)}"]
7
- worker = Popen(command)
8
- worker.wait()
9
 
10
- #import gradio as gr
 
11
 
12
- #def greet(name):
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