Spaces:
Build error
Build error
Commit
·
d30a365
1
Parent(s):
76d20e6
Update app.py
Browse files
app.py
CHANGED
@@ -5,9 +5,9 @@ from huggingface_hub import Repository
|
|
5 |
def greet(name):
|
6 |
return "Hello " + name + "!!"
|
7 |
|
8 |
-
args= dict({'transformer_model_name':'nehalelkaref/plain_span',
|
9 |
-
|
10 |
iface = gr.Interface(fn=greet, inputs="text", outputs="text")
|
11 |
-
model = SpanNet(
|
12 |
|
13 |
# iface.launch()
|
|
|
5 |
def greet(name):
|
6 |
return "Hello " + name + "!!"
|
7 |
|
8 |
+
# args= dict({'transformer_model_name':'nehalelkaref/plain_span',
|
9 |
+
# 'device':'cuda'})
|
10 |
iface = gr.Interface(fn=greet, inputs="text", outputs="text")
|
11 |
+
model = SpanNet(transformer_model_name= 'nehalelkaref/plain_span',device='cuda')
|
12 |
|
13 |
# iface.launch()
|