Spaces:
Build error
Build error
Update app.py
Browse files
app.py
CHANGED
|
@@ -142,15 +142,15 @@ API input parameters:
|
|
| 142 |
- `limit_companies`: integer. Number of found relevant companies to report.
|
| 143 |
|
| 144 |
"""
|
| 145 |
-
|
| 146 |
-
|
| 147 |
-
|
| 148 |
-
|
| 149 |
-
|
| 150 |
-
|
| 151 |
-
|
| 152 |
-
|
| 153 |
-
|
| 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'),
|
|
|
|
| 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',
|
| 149 |
+
'https://www.theguardian.com/business/2022/sep/02/nord-stream-1-gazprom-announces-indefinite-shutdown-of-pipeline',
|
| 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'),
|