Spaces:
Sleeping
Sleeping
AlexCool2024
commited on
Update app.py
Browse files
app.py
CHANGED
@@ -11,6 +11,12 @@ st.title("Video Frame to Image Description")
|
|
11 |
# Загрузка видеофайла
|
12 |
uploaded_file = st.file_uploader("Upload a video file", type=["mp4", "avi", "mov"])
|
13 |
|
|
|
|
|
|
|
|
|
|
|
|
|
14 |
cap = None # Инициализируем объект cap как None
|
15 |
|
16 |
if uploaded_file is not None:
|
@@ -43,7 +49,8 @@ if uploaded_file is not None:
|
|
43 |
response = requests.post(
|
44 |
model_url,
|
45 |
headers=headers,
|
46 |
-
files=files
|
|
|
47 |
)
|
48 |
|
49 |
# Получение и отображение результата
|
|
|
11 |
# Загрузка видеофайла
|
12 |
uploaded_file = st.file_uploader("Upload a video file", type=["mp4", "avi", "mov"])
|
13 |
|
14 |
+
try:
|
15 |
+
response = requests.get("https://hf.space")
|
16 |
+
print(f"Status Code: {response.status_code}")
|
17 |
+
except requests.exceptions.SSLError as e:
|
18 |
+
print("SSL error occurred:", e)
|
19 |
+
|
20 |
cap = None # Инициализируем объект cap как None
|
21 |
|
22 |
if uploaded_file is not None:
|
|
|
49 |
response = requests.post(
|
50 |
model_url,
|
51 |
headers=headers,
|
52 |
+
files=files,
|
53 |
+
verify=False
|
54 |
)
|
55 |
|
56 |
# Получение и отображение результата
|