Spaces:
Runtime error
Runtime error
Upload 5 files
Browse files- main_page.py +1 -2
- pages/1_π₯_An_Image.py +1 -0
- pages/2_π·_A_Folder.py +1 -0
- pre_reqs.py +2 -0
main_page.py
CHANGED
@@ -1,6 +1,5 @@
|
|
|
|
1 |
import streamlit as st
|
2 |
-
import os
|
3 |
-
os.system("mim install mmcv>=2.0.0rc4")
|
4 |
# https://huggingface.co/spaces/KyanChen/ai-photo-gallery
|
5 |
|
6 |
st.set_page_config(
|
|
|
1 |
+
import pre_reqs
|
2 |
import streamlit as st
|
|
|
|
|
3 |
# https://huggingface.co/spaces/KyanChen/ai-photo-gallery
|
4 |
|
5 |
st.set_page_config(
|
pages/1_π₯_An_Image.py
CHANGED
@@ -1,3 +1,4 @@
|
|
|
|
1 |
import cv2
|
2 |
import numpy as np
|
3 |
import streamlit as st
|
|
|
1 |
+
from .. import pre_reqs
|
2 |
import cv2
|
3 |
import numpy as np
|
4 |
import streamlit as st
|
pages/2_π·_A_Folder.py
CHANGED
@@ -1,3 +1,4 @@
|
|
|
|
1 |
import glob
|
2 |
import os.path
|
3 |
|
|
|
1 |
+
from .. import pre_reqs
|
2 |
import glob
|
3 |
import os.path
|
4 |
|
pre_reqs.py
ADDED
@@ -0,0 +1,2 @@
|
|
|
|
|
|
|
1 |
+
import os
|
2 |
+
os.system("mim install mmcv>=2.0.0rc4")
|