napoles3d commited on
Commit
f0c31e2
1 Parent(s): a0b28f1

Add application file

Browse files
Files changed (1) hide show
  1. app.py +43 -0
app.py ADDED
@@ -0,0 +1,43 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ import streamlit as st
2
+ #from streamlit_player import st_player
3
+ import streamlit.components.v1 as components
4
+ #from streamlit_tags import st_tags, st_tags_sidebar
5
+ import urllib.request
6
+ st.set_page_config(layout="wide")
7
+
8
+ list1=[]
9
+ list2=[]
10
+ maxtags =6
11
+
12
+
13
+
14
+ #col1, col2, col3 = st.columns([6,1,2])
15
+ #with col1:
16
+ # sel_url=st.selectbox('Select url', keywords)
17
+ # components.iframe(sel_url,height=800,scrolling=True)
18
+
19
+
20
+ #with col3:
21
+ # url_youtube=st.text_input('Enter youtube URL','https://www.youtube.com/watch?v=_daTfgc4u3k')
22
+ # st_player(url_youtube)
23
+
24
+
25
+ url = "https://raw.githubusercontent.com/napoles-uach/MundaneApps/main/links.txt"
26
+ file = urllib.request.urlopen(url)
27
+
28
+ urls=[]
29
+ for line in file:
30
+ decoded_line = line.decode("utf-8")
31
+ urls.append(decoded_line)
32
+
33
+ sel_url=st.selectbox('Select url', urls)
34
+ components.iframe(sel_url,height=800,scrolling=True)
35
+
36
+ #col1, col2, col3 = st.columns([6,1,2])
37
+ #with col1:
38
+ # sel_url=st.selectbox('Select url', urls)
39
+ # components.iframe(sel_url,height=800,scrolling=True)
40
+
41
+ #with col3:
42
+ # url_youtube=st.text_input('Enter youtube URL','https://www.youtube.com/watch?v=_daTfgc4u3k')
43
+ # st_player(url_youtube)