Spaces:
Sleeping
Sleeping
Update src/streamlit_app.py
Browse files- src/streamlit_app.py +6 -1
src/streamlit_app.py
CHANGED
@@ -1,3 +1,8 @@
|
|
|
|
|
|
|
|
|
|
|
|
1 |
import altair as alt
|
2 |
import numpy as np
|
3 |
import pandas as pd
|
@@ -5,11 +10,11 @@ import streamlit as st
|
|
5 |
import cv2
|
6 |
import mediapipe as mp
|
7 |
import time
|
8 |
-
import os
|
9 |
from mediapipe.python.solutions import hands
|
10 |
from streamlit_webrtc import webrtc_streamer, VideoTransformerBase
|
11 |
|
12 |
|
|
|
13 |
st.set_page_config(page_title="🖐️ Hand Tracking Demo", layout="wide")
|
14 |
|
15 |
|
|
|
1 |
+
import os
|
2 |
+
os.environ["STREAMLIT_CONFIG_DIR"] = "/tmp/.streamlit"
|
3 |
+
os.environ["STREAMLIT_CACHE_DIR"] = "/tmp/.streamlit/cache"
|
4 |
+
os.makedirs("/tmp/.streamlit/cache", exist_ok=True)
|
5 |
+
|
6 |
import altair as alt
|
7 |
import numpy as np
|
8 |
import pandas as pd
|
|
|
10 |
import cv2
|
11 |
import mediapipe as mp
|
12 |
import time
|
|
|
13 |
from mediapipe.python.solutions import hands
|
14 |
from streamlit_webrtc import webrtc_streamer, VideoTransformerBase
|
15 |
|
16 |
|
17 |
+
|
18 |
st.set_page_config(page_title="🖐️ Hand Tracking Demo", layout="wide")
|
19 |
|
20 |
|