j-woo commited on
Commit
740e19c
·
1 Parent(s): 1a16b5f

Initial commit

Browse files
Files changed (2) hide show
  1. README.md +3 -3
  2. app.py +17 -0
README.md CHANGED
@@ -1,13 +1,13 @@
1
  ---
2
- title: Rpi Cam
3
- emoji: 🐢
4
  colorFrom: blue
5
  colorTo: red
6
  sdk: streamlit
7
  sdk_version: 1.39.0
8
  app_file: app.py
9
  pinned: false
10
- short_description: Collection of streams
11
  ---
12
 
13
  Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference
 
1
  ---
2
+ title: Hardware Livestreams
3
+ emoji: 🎥
4
  colorFrom: blue
5
  colorTo: red
6
  sdk: streamlit
7
  sdk_version: 1.39.0
8
  app_file: app.py
9
  pinned: false
10
+ short_description: Collection of streams of training lab hardware
11
  ---
12
 
13
  Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference
app.py ADDED
@@ -0,0 +1,17 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ import streamlit as st
2
+
3
+ st.title("Hardware Streams")
4
+
5
+ col_1, col_2 = st.columns(2)
6
+
7
+ stream_links_information = [
8
+ ("MyCobot280Pi", "https://youtube.com/live/fF4zEp6LSkg?feature=share")
9
+ ]
10
+
11
+ for idx, (title, link) in enumerate(stream_links_information):
12
+ if idx % 2 == 0:
13
+ col_1.subheader(title)
14
+ col_1.video(link)
15
+ else:
16
+ col_2.header(title)
17
+ col_2.video(link)