samcoding5854 commited on
Commit
47acebd
1 Parent(s): abd8f6e

Added Video code

Browse files
Files changed (1) hide show
  1. app.py +22 -0
app.py CHANGED
@@ -1,3 +1,4 @@
 
1
  import streamlit as st
2
  from Pages.createVisual import CREATEVISUALS
3
  from Pages.AboutMe import ABOUTUS
@@ -14,6 +15,27 @@ st.set_page_config(
14
 
15
 
16
  def MAIN():
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
17
  st.sidebar.title('LumiereIQ')
18
  app = st.sidebar.selectbox('', ['Create Visuals','Background Images','Create Video', 'About Me'])
19
  if app == "Create Visuals":
 
1
+ import os
2
  import streamlit as st
3
  from Pages.createVisual import CREATEVISUALS
4
  from Pages.AboutMe import ABOUTUS
 
15
 
16
 
17
  def MAIN():
18
+
19
+ folder_Command = "mkdir -p weights"
20
+
21
+ # Define the download command
22
+ download_command = "wget -q https://dl.fbaipublicfiles.com/segment_anything/sam_vit_h_4b8939.pth -P weights"
23
+
24
+ # Execute the command
25
+
26
+ os.system(folder_Command)
27
+
28
+ os.system(download_command)
29
+
30
+ # Verify the file is downloaded
31
+ file_path = os.path.expanduser("~/weights/sam_vit_h_4b8939.pth")
32
+ if os.path.exists(file_path):
33
+ print("File downloaded successfully.")
34
+ else:
35
+ print("File download failed.")
36
+
37
+ # Rest of your application code
38
+
39
  st.sidebar.title('LumiereIQ')
40
  app = st.sidebar.selectbox('', ['Create Visuals','Background Images','Create Video', 'About Me'])
41
  if app == "Create Visuals":