Spaces:
Build error
Build error
Update app.py
Browse files
app.py
CHANGED
|
@@ -69,7 +69,7 @@ def _lematise_text(text):
|
|
| 69 |
|
| 70 |
new_text = new_text + " " + token.lemma_
|
| 71 |
|
| 72 |
-
|
| 73 |
return text_out
|
| 74 |
|
| 75 |
def sigmoid(x):
|
|
@@ -142,7 +142,7 @@ API input parameters:
|
|
| 142 |
- `limit_companies`: integer. Number of found relevant companies to report.
|
| 143 |
|
| 144 |
"""
|
| 145 |
-
examples = [['https://www.bbc.com/news/uk-62732447',
|
| 146 |
'https://www.bbc.com/news/business-62747401',
|
| 147 |
'https://www.bbc.com/news/technology-62744858',
|
| 148 |
'https://www.bbc.com/news/science-environment-62758811',
|
|
@@ -150,7 +150,7 @@ examples = [['https://www.bbc.com/news/uk-62732447',
|
|
| 150 |
'https://www.bbc.com/news/world-europe-62766867',
|
| 151 |
'https://www.bbc.com/news/business-62524031',
|
| 152 |
'https://www.bbc.com/news/business-62728621',
|
| 153 |
-
'https://www.bbc.com/news/science-environment-62680423'],'url',False,5]
|
| 154 |
demo = gr.Interface(fn=inference,
|
| 155 |
inputs=[gr.Dataframe(label='input batch', col_count=1, datatype='str', type='array', wrap=True),
|
| 156 |
gr.Dropdown(label='data type', choices=['text','url'], type='index'),
|
|
|
|
| 69 |
|
| 70 |
new_text = new_text + " " + token.lemma_
|
| 71 |
|
| 72 |
+
text_out.append( new_text )
|
| 73 |
return text_out
|
| 74 |
|
| 75 |
def sigmoid(x):
|
|
|
|
| 142 |
- `limit_companies`: integer. Number of found relevant companies to report.
|
| 143 |
|
| 144 |
"""
|
| 145 |
+
examples = [[['https://www.bbc.com/news/uk-62732447',
|
| 146 |
'https://www.bbc.com/news/business-62747401',
|
| 147 |
'https://www.bbc.com/news/technology-62744858',
|
| 148 |
'https://www.bbc.com/news/science-environment-62758811',
|
|
|
|
| 150 |
'https://www.bbc.com/news/world-europe-62766867',
|
| 151 |
'https://www.bbc.com/news/business-62524031',
|
| 152 |
'https://www.bbc.com/news/business-62728621',
|
| 153 |
+
'https://www.bbc.com/news/science-environment-62680423'],'url',False,5]]
|
| 154 |
demo = gr.Interface(fn=inference,
|
| 155 |
inputs=[gr.Dataframe(label='input batch', col_count=1, datatype='str', type='array', wrap=True),
|
| 156 |
gr.Dropdown(label='data type', choices=['text','url'], type='index'),
|