Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -48,8 +48,8 @@ _max_width_()
|
|
| 48 |
|
| 49 |
|
| 50 |
def main():
|
| 51 |
-
model, clip_model, preprocess, tokenizer = load_model()
|
| 52 |
-
prefix_length = 50
|
| 53 |
|
| 54 |
st.title("🦾 Video Analysis for Education")
|
| 55 |
st.header("")
|
|
@@ -68,6 +68,9 @@ def main():
|
|
| 68 |
|
| 69 |
if uploaded_file is not None:
|
| 70 |
st.write('success')
|
|
|
|
|
|
|
|
|
|
| 71 |
else:
|
| 72 |
st.write('no')
|
| 73 |
|
|
|
|
| 48 |
|
| 49 |
|
| 50 |
def main():
|
| 51 |
+
# model, clip_model, preprocess, tokenizer = load_model()
|
| 52 |
+
# prefix_length = 50
|
| 53 |
|
| 54 |
st.title("🦾 Video Analysis for Education")
|
| 55 |
st.header("")
|
|
|
|
| 68 |
|
| 69 |
if uploaded_file is not None:
|
| 70 |
st.write('success')
|
| 71 |
+
tfile = tempfile.NamedTemporaryFile(delete=False)
|
| 72 |
+
tfile.write(uploaded_file.read())
|
| 73 |
+
st.write(tfile, tfile.name)
|
| 74 |
else:
|
| 75 |
st.write('no')
|
| 76 |
|