Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -203,11 +203,11 @@ def create_interface():
|
|
203 |
|
204 |
if file_path and video_info:
|
205 |
success_message = f"{download_message}\n\nVideo downloaded successfully! Click 'Show Analysis Results' to see detailed information."
|
206 |
-
return success_message, gr.File(value=file_path, visible=True), gr.Button(visible=True), video_info
|
207 |
elif file_path:
|
208 |
-
return f"{download_message}\n\nVideo downloaded but analysis data unavailable.", gr.File(value=file_path, visible=True), gr.Button(visible=False), None
|
209 |
else:
|
210 |
-
return f"❌ Download failed:\n{download_message}", gr.File(visible=False), gr.Button(visible=False), None
|
211 |
|
212 |
def show_analysis(video_info):
|
213 |
if video_info:
|
|
|
203 |
|
204 |
if file_path and video_info:
|
205 |
success_message = f"{download_message}\n\nVideo downloaded successfully! Click 'Show Analysis Results' to see detailed information."
|
206 |
+
return success_message, gr.File(value=file_path, visible=True), gr.Button(visible=True), gr.State(video_info)
|
207 |
elif file_path:
|
208 |
+
return f"{download_message}\n\nVideo downloaded but analysis data unavailable.", gr.File(value=file_path, visible=True), gr.Button(visible=False), gr.State(None)
|
209 |
else:
|
210 |
+
return f"❌ Download failed:\n{download_message}", gr.File(visible=False), gr.Button(visible=False), gr.State(None)
|
211 |
|
212 |
def show_analysis(video_info):
|
213 |
if video_info:
|