Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -1,18 +1,13 @@
|
|
| 1 |
import streamlit as st
|
| 2 |
-
|
| 3 |
-
from io import BytesIO
|
| 4 |
-
from PIL import Image
|
| 5 |
-
from terran.io import open_image
|
| 6 |
-
from terran.vis import display_image, vis_faces
|
| 7 |
-
from terran.face import face_detection
|
| 8 |
|
| 9 |
-
|
| 10 |
-
|
| 11 |
-
|
| 12 |
-
|
| 13 |
-
|
| 14 |
-
|
| 15 |
-
|
| 16 |
-
|
| 17 |
-
|
| 18 |
-
|
|
|
|
| 1 |
import streamlit as st
|
| 2 |
+
from streamlit_terran_timeline import generate_timeline, terran_timeline
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 3 |
|
| 4 |
+
# Generate the timeline information
|
| 5 |
+
timeline = generate_timeline("https://www.youtube.com/watch?v=dQw4w9WgXcQ")
|
| 6 |
+
|
| 7 |
+
#
|
| 8 |
+
# Display the timeline. If the users click, you'll get the exact second of
|
| 9 |
+
# the part of the timeline video. By default, it returns 0.
|
| 10 |
+
#
|
| 11 |
+
start_time = terran_timeline(timeline)
|
| 12 |
+
|
| 13 |
+
st.write(f"User clicked on second {start_time}")
|