Spaces:
Build error
Build error
changed api key
Browse files
app.py
CHANGED
|
@@ -31,7 +31,7 @@ def text_to_sentiment(text):
|
|
| 31 |
|
| 32 |
##Company Extraction
|
| 33 |
def fin_ner(text):
|
| 34 |
-
api = gr.Interface.load("dslim/bert-base-NER", src='models',
|
| 35 |
replaced_spans = api(text)
|
| 36 |
return replaced_spans
|
| 37 |
|
|
|
|
| 31 |
|
| 32 |
##Company Extraction
|
| 33 |
def fin_ner(text):
|
| 34 |
+
api = gr.Interface.load("dslim/bert-base-NER", src='models', api_key=auth_token)
|
| 35 |
replaced_spans = api(text)
|
| 36 |
return replaced_spans
|
| 37 |
|