nehalelkaref commited on
Commit
134388c
·
1 Parent(s): aaeb391

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -1
app.py CHANGED
@@ -5,7 +5,9 @@ from huggingface_hub import Repository
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()
 
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(args)
12
 
13
  # iface.launch()