Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -311,7 +311,7 @@ def find_rss():
|
|
| 311 |
outfile1.write(json_object1)
|
| 312 |
api.upload_file(
|
| 313 |
path_or_fileobj="tmp3.json",
|
| 314 |
-
path_in_repo=f"/rss1/phrase-index.json",
|
| 315 |
repo_id=reponame,
|
| 316 |
#repo_id=save_data.split('datasets/',1)[1].split('/raw',1)[0],
|
| 317 |
token=token_self,
|
|
@@ -363,7 +363,7 @@ def load_data(rss_url=None):
|
|
| 363 |
yield None,None,None, [(None, f'{rss_url} ::ERROR::COULD NOT CONNECT:: {r.status_code}')]
|
| 364 |
if not rss_url:
|
| 365 |
yield None,None,None,[(None,f'Loading data from database, please wait')]
|
| 366 |
-
r1 = requests.get(f'{save_data}phrase-index.json')
|
| 367 |
if r1.status_code==200:
|
| 368 |
lod1 = json.loads(r1.text)
|
| 369 |
lod2 =list(lod1.keys())
|
|
|
|
| 311 |
outfile1.write(json_object1)
|
| 312 |
api.upload_file(
|
| 313 |
path_or_fileobj="tmp3.json",
|
| 314 |
+
path_in_repo=f"/rss1/0-phrase-index.json",
|
| 315 |
repo_id=reponame,
|
| 316 |
#repo_id=save_data.split('datasets/',1)[1].split('/raw',1)[0],
|
| 317 |
token=token_self,
|
|
|
|
| 363 |
yield None,None,None, [(None, f'{rss_url} ::ERROR::COULD NOT CONNECT:: {r.status_code}')]
|
| 364 |
if not rss_url:
|
| 365 |
yield None,None,None,[(None,f'Loading data from database, please wait')]
|
| 366 |
+
r1 = requests.get(f'{save_data}0-phrase-index.json')
|
| 367 |
if r1.status_code==200:
|
| 368 |
lod1 = json.loads(r1.text)
|
| 369 |
lod2 =list(lod1.keys())
|