hassiahk commited on
Commit
7a6388a
1 Parent(s): e4b8bbd

Added updated models

Browse files
Files changed (2) hide show
  1. app.py +3 -3
  2. config.json +7 -2
app.py CHANGED
@@ -19,7 +19,7 @@ with open("config.json") as f:
19
 
20
 
21
  def select_model():
22
- obj_select = st.selectbox("Select a scene", ("Chair", "Lego", "Ship", "Hotdog"))
23
  # if obj_select == "Chair":
24
  # FILE_ID = "17dj0pQieo94TozFv-noSBkXebduij1aM"
25
  # MODEL_DIR = "models"
@@ -54,7 +54,7 @@ st.markdown("")
54
  MODEL_DIR, MODEL_NAME, FILE_ID = select_model()
55
 
56
 
57
- @st.cache
58
  def download_model():
59
  os.makedirs(MODEL_DIR, exist_ok=True)
60
  _model_path = os.path.join(MODEL_DIR, MODEL_NAME)
@@ -87,7 +87,7 @@ st.sidebar.markdown(
87
  }
88
  </style>
89
  <p class="aligncenter">
90
- <img src="https://user-images.githubusercontent.com/77657524/126361638-4aad58e8-4efb-4fc5-bf78-f53d03799e1e.png" width="410" height="400"/>
91
  </p>
92
  """,
93
  unsafe_allow_html=True,
 
19
 
20
 
21
  def select_model():
22
+ obj_select = st.selectbox("Select a scene", ("Mic", "Chair", "Lego", "Ship", "Hotdog"))
23
  # if obj_select == "Chair":
24
  # FILE_ID = "17dj0pQieo94TozFv-noSBkXebduij1aM"
25
  # MODEL_DIR = "models"
 
54
  MODEL_DIR, MODEL_NAME, FILE_ID = select_model()
55
 
56
 
57
+ @st.cache(show_spinner=False)
58
  def download_model():
59
  os.makedirs(MODEL_DIR, exist_ok=True)
60
  _model_path = os.path.join(MODEL_DIR, MODEL_NAME)
 
87
  }
88
  </style>
89
  <p class="aligncenter">
90
+ <img src="https://user-images.githubusercontent.com/77657524/126361638-4aad58e8-4efb-4fc5-bf78-f53d03799e1e.png" width="420" height="400"/>
91
  </p>
92
  """,
93
  unsafe_allow_html=True,
config.json CHANGED
@@ -5,12 +5,12 @@
5
  "NERF_MODEL_NAME": "nerf_chair"
6
  },
7
  "Lego": {
8
- "FILE_ID": "1D9I-qIVMPaxuCHfUWPWMHaoLYtAmCjwI",
9
  "DIET_NERF_MODEL_NAME": "diet_nerf_lego",
10
  "NERF_MODEL_NAME": "nerf_lego"
11
  },
12
  "Ship": {
13
- "FILE_ID": "14ZeJ86ETQr8dtu6CFoxU-ifvniHKo_Dt",
14
  "DIET_NERF_MODEL_NAME": "diet_nerf_ship",
15
  "NERF_MODEL_NAME": "nerf_ship"
16
  },
@@ -18,5 +18,10 @@
18
  "FILE_ID": "11vNlR4lMvV_AVFgVjZmKMrMWGVG7qhNu",
19
  "DIET_NERF_MODEL_NAME": "diet_nerf_hotdog",
20
  "NERF_MODEL_NAME": "nerf_hotdog"
 
 
 
 
 
21
  }
22
  }
 
5
  "NERF_MODEL_NAME": "nerf_chair"
6
  },
7
  "Lego": {
8
+ "FILE_ID": "1UaUKgShJTKp5zNQdXvVhkyxgU-2YU3Ay",
9
  "DIET_NERF_MODEL_NAME": "diet_nerf_lego",
10
  "NERF_MODEL_NAME": "nerf_lego"
11
  },
12
  "Ship": {
13
+ "FILE_ID": "1Eb4eZ9vn6FcbqLIaBoW-6NlyWr-y0eTW",
14
  "DIET_NERF_MODEL_NAME": "diet_nerf_ship",
15
  "NERF_MODEL_NAME": "nerf_ship"
16
  },
 
18
  "FILE_ID": "11vNlR4lMvV_AVFgVjZmKMrMWGVG7qhNu",
19
  "DIET_NERF_MODEL_NAME": "diet_nerf_hotdog",
20
  "NERF_MODEL_NAME": "nerf_hotdog"
21
+ },
22
+ "Mic": {
23
+ "FILE_ID": "1vuyCAY8YKLo7OSlTpLJgMem47gJc1W2S",
24
+ "DIET_NERF_MODEL_NAME": "diet_nerf_mic",
25
+ "NERF_MODEL_NAME": "nerf_mic"
26
  }
27
  }