Spaces:
Build error
Build error
Update app.py
Browse files
app.py
CHANGED
|
@@ -44,7 +44,7 @@ def text_to_sentiment(text):
|
|
| 44 |
|
| 45 |
##Company Extraction
|
| 46 |
def fin_ner(text):
|
| 47 |
-
api = gr.Interface.load("dslim/bert-base-NER", src='models',
|
| 48 |
replaced_spans = api(text)
|
| 49 |
return replaced_spans
|
| 50 |
|
|
|
|
| 44 |
|
| 45 |
##Company Extraction
|
| 46 |
def fin_ner(text):
|
| 47 |
+
api = gr.Interface.load("dslim/bert-base-NER", src='models', use_auth_token=auth_token)
|
| 48 |
replaced_spans = api(text)
|
| 49 |
return replaced_spans
|
| 50 |
|