Spaces:
Running
on
Zero
Running
on
Zero
Update app.py
Browse files
app.py
CHANGED
@@ -88,13 +88,13 @@ title_markdown = """
|
|
88 |
<div style="display: flex; justify-content: space-between; align-items: center; background: linear-gradient(90deg, rgba(72,219,251,0.1), rgba(29,209,161,0.1)); border-radius: 20px; box-shadow: 0 4px 6px rgba(0,0,0,0.1); padding: 20px; margin-bottom: 20px;">
|
89 |
<div style="display: flex; align-items: center;">
|
90 |
<a href="https://egolife-ntu.github.io/" style="margin-right: 20px; text-decoration: none; display: flex; align-items: center;">
|
91 |
-
<img src="https://egolife-
|
92 |
</a>
|
93 |
<div>
|
94 |
<h1 style="margin: 0; background: linear-gradient(90deg, #48dbfb, #1dd1a1); -webkit-background-clip: text; -webkit-text-fill-color: transparent; font-size: 2.5em; font-weight: 700;">EgoLife</h1>
|
95 |
<h2 style="margin: 10px 0; color: #2d3436; font-weight: 500;">Towards Egocentric Life Assistant</h2>
|
96 |
<div style="display: flex; gap: 15px; margin-top: 10px;">
|
97 |
-
<a href="https://egolife-
|
98 |
<a href="https://github.com/egolife-ntu/EgoGPT" style="text-decoration: none; color: #48dbfb; font-weight: 500; transition: color 0.3s;">Github</a> |
|
99 |
<a href="https://huggingface.co/lmms-lab" style="text-decoration: none; color: #48dbfb; font-weight: 500; transition: color 0.3s;">Huggingface</a> |
|
100 |
<a href="https://arxiv.org/" style="text-decoration: none; color: #48dbfb; font-weight: 500; transition: color 0.3s;">Paper</a> |
|
@@ -129,7 +129,9 @@ bibtext = """
|
|
129 |
|
130 |
# cur_dir = os.path.dirname(os.path.abspath(__file__))
|
131 |
cur_dir = '.'
|
132 |
-
|
|
|
|
|
133 |
|
134 |
def time_to_frame_idx(time_int: int, fps: int) -> int:
|
135 |
"""
|
|
|
88 |
<div style="display: flex; justify-content: space-between; align-items: center; background: linear-gradient(90deg, rgba(72,219,251,0.1), rgba(29,209,161,0.1)); border-radius: 20px; box-shadow: 0 4px 6px rgba(0,0,0,0.1); padding: 20px; margin-bottom: 20px;">
|
89 |
<div style="display: flex; align-items: center;">
|
90 |
<a href="https://egolife-ntu.github.io/" style="margin-right: 20px; text-decoration: none; display: flex; align-items: center;">
|
91 |
+
<img src="https://egolife-ai.github.io/egolife.png" alt="EgoLife" style="max-width: 100px; height: auto; border-radius: 15px; box-shadow: 0 2px 4px rgba(0,0,0,0.1);">
|
92 |
</a>
|
93 |
<div>
|
94 |
<h1 style="margin: 0; background: linear-gradient(90deg, #48dbfb, #1dd1a1); -webkit-background-clip: text; -webkit-text-fill-color: transparent; font-size: 2.5em; font-weight: 700;">EgoLife</h1>
|
95 |
<h2 style="margin: 10px 0; color: #2d3436; font-weight: 500;">Towards Egocentric Life Assistant</h2>
|
96 |
<div style="display: flex; gap: 15px; margin-top: 10px;">
|
97 |
+
<a href="https://egolife-ai.github.io/" style="text-decoration: none; color: #48dbfb; font-weight: 500; transition: color 0.3s;">Project Page</a> |
|
98 |
<a href="https://github.com/egolife-ntu/EgoGPT" style="text-decoration: none; color: #48dbfb; font-weight: 500; transition: color 0.3s;">Github</a> |
|
99 |
<a href="https://huggingface.co/lmms-lab" style="text-decoration: none; color: #48dbfb; font-weight: 500; transition: color 0.3s;">Huggingface</a> |
|
100 |
<a href="https://arxiv.org/" style="text-decoration: none; color: #48dbfb; font-weight: 500; transition: color 0.3s;">Paper</a> |
|
|
|
129 |
|
130 |
# cur_dir = os.path.dirname(os.path.abspath(__file__))
|
131 |
cur_dir = '.'
|
132 |
+
# Add this after cur_dir definition
|
133 |
+
UPLOADS_DIR = os.path.join(cur_dir, "user_uploads")
|
134 |
+
os.makedirs(UPLOADS_DIR, exist_ok=True)
|
135 |
|
136 |
def time_to_frame_idx(time_int: int, fps: int) -> int:
|
137 |
"""
|