dokster commited on
Commit
65d1a5f
β€’
1 Parent(s): 9250a7d

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -17
app.py CHANGED
@@ -67,20 +67,6 @@ def main():
67
 
68
  uploaded_file = st.file_uploader("πŸ“Œ Upload video: ", ['.mp4'])
69
 
70
- # if uploaded_file is not None:
71
- # st.write('success')
72
- # tfile = tempfile.NamedTemporaryFile(delete=False)
73
- # tfile.write(uploaded_file.read())
74
- # st.write(tfile, tfile.name)
75
- # cap = cv2.VideoCapture(tfile.name)
76
- # st.write(cap)
77
- # else:
78
- # st.write('no')
79
-
80
- # if play_video:
81
- # video_bytes = uploaded_file.read()
82
- # st.video(video_bytes)
83
-
84
  st.write("---")
85
 
86
  a, b = st.columns([4, 1])
@@ -92,7 +78,7 @@ def main():
92
  button = b.button("Send", use_container_width=True)
93
 
94
  if button:
95
- # try:
96
  # tfile = tempfile.NamedTemporaryFile(delete=False)
97
  # tfile.write(uploaded_file.read())
98
 
@@ -130,8 +116,8 @@ def main():
130
 
131
  res = st.text_input('βœ… Answer to the question', result, disabled=False)
132
 
133
- # except:
134
- # pass
135
 
136
  if __name__ == '__main__':
137
  main()
 
67
 
68
  uploaded_file = st.file_uploader("πŸ“Œ Upload video: ", ['.mp4'])
69
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
70
  st.write("---")
71
 
72
  a, b = st.columns([4, 1])
 
78
  button = b.button("Send", use_container_width=True)
79
 
80
  if button:
81
+ try:
82
  # tfile = tempfile.NamedTemporaryFile(delete=False)
83
  # tfile.write(uploaded_file.read())
84
 
 
116
 
117
  res = st.text_input('βœ… Answer to the question', result, disabled=False)
118
 
119
+ except:
120
+ pass
121
 
122
  if __name__ == '__main__':
123
  main()