Spaces:
Sleeping
Sleeping
seawolf2357
commited on
Update app.py
Browse files
app.py
CHANGED
@@ -26,9 +26,8 @@ def search_pexels_videos(query):
|
|
26 |
# Pexels λμμ κ²μ κ²°κ³Όλ₯Ό HTML λ§ν¬λ‘ νμνλ ν¨μ
|
27 |
def show_video_search_results(query):
|
28 |
videos_info = search_pexels_videos(query)
|
29 |
-
# HTML λ§ν¬ μμ±
|
30 |
videos_html = [
|
31 |
-
f"<div style='margin: 10px;'><a href='{video['url']}' target='_blank' style='text-decoration: none;'><img src='{video['image']}' alt='Video thumbnail' style='width:
|
32 |
for video in videos_info
|
33 |
]
|
34 |
return "".join(videos_html)
|
|
|
26 |
# Pexels λμμ κ²μ κ²°κ³Όλ₯Ό HTML λ§ν¬λ‘ νμνλ ν¨μ
|
27 |
def show_video_search_results(query):
|
28 |
videos_info = search_pexels_videos(query)
|
|
|
29 |
videos_html = [
|
30 |
+
f"<div style='margin: 10px; display: inline-block;'><a href='{video['url']}' target='_blank' style='text-decoration: none;'><img src='{video['image']}' alt='Video thumbnail' style='width: 200px;'><p>View Video</p></a></div>"
|
31 |
for video in videos_info
|
32 |
]
|
33 |
return "".join(videos_html)
|