Spaces:
Build error
Build error
Commit
·
eaaa625
1
Parent(s):
651351a
Update app.py
Browse files
app.py
CHANGED
@@ -1,9 +1,11 @@
|
|
1 |
import gradio as gr
|
|
|
2 |
from huggingface_hub import Repository
|
3 |
|
4 |
def greet(name):
|
5 |
return "Hello " + name + "!!"
|
6 |
|
7 |
iface = gr.Interface(fn=greet, inputs="text", outputs="text")
|
8 |
-
|
|
|
9 |
# iface.launch()
|
|
|
1 |
import gradio as gr
|
2 |
+
from .network import SpanNet
|
3 |
from huggingface_hub import Repository
|
4 |
|
5 |
def greet(name):
|
6 |
return "Hello " + name + "!!"
|
7 |
|
8 |
iface = gr.Interface(fn=greet, inputs="text", outputs="text")
|
9 |
+
model = SpanNet.load_model(model_path='nehalelkaref/plain_span', device='cuda').cuda()
|
10 |
+
|
11 |
# iface.launch()
|