Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -84,20 +84,9 @@ def make_animation(url1="",url2="",url3="",url4="",url5="",url6="",url7="",url8=
|
|
| 84 |
print(f'{get_url}')
|
| 85 |
get_url=get_url.split("[]")[0]
|
| 86 |
print(f'{get_url}')
|
| 87 |
-
|
| 88 |
-
if get_url.endswith('.json'):
|
| 89 |
-
feed1 = requests.get(get_url)
|
| 90 |
-
return None, feed1.text
|
| 91 |
-
elif get_url.endswith(".png") or get_url.endswith(".gif") or get_url.endswith(".jpg"):
|
| 92 |
-
html_out=f"<style>{css}</style><div>"
|
| 93 |
-
html_out+=f'<div class="img_class_raw"><a href="{get_url}" target="_blank">{get_url}</a><br><img src={get_url}></div></div>'
|
| 94 |
-
return html_out, None
|
| 95 |
-
|
| 96 |
-
|
| 97 |
-
|
| 98 |
|
| 99 |
#get_url=f'{main_directory}images/animations/'
|
| 100 |
-
feed1 = requests.get(
|
| 101 |
spl = feed1.text.split("href=")
|
| 102 |
files_out=[]
|
| 103 |
html_out=""
|
|
|
|
| 84 |
print(f'{get_url}')
|
| 85 |
get_url=get_url.split("[]")[0]
|
| 86 |
print(f'{get_url}')
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 87 |
|
| 88 |
#get_url=f'{main_directory}images/animations/'
|
| 89 |
+
feed1 = requests.get(get_url)
|
| 90 |
spl = feed1.text.split("href=")
|
| 91 |
files_out=[]
|
| 92 |
html_out=""
|