Spaces:
Runtime error
Runtime error
Oshchepkov
commited on
Commit
•
6dd3d81
1
Parent(s):
2104370
Upload app.py
Browse files
app.py
CHANGED
@@ -73,12 +73,12 @@ if __name__ == "__main__":
|
|
73 |
)["input_ids"]
|
74 |
|
75 |
|
76 |
-
if st.button('Compute summary', help='Click me):
|
77 |
outputs = model.generate(inputs.to(device), max_new_tokens=100, do_sample=False)
|
78 |
summary = tokenizer.decode(outputs[0], skip_special_tokens=True)
|
79 |
st.subheader('Summary')
|
80 |
st.markdown(summary)
|
81 |
else:
|
82 |
-
st.
|
83 |
else:
|
84 |
-
st.
|
|
|
73 |
)["input_ids"]
|
74 |
|
75 |
|
76 |
+
if st.button('Compute summary', help='Click me'):
|
77 |
outputs = model.generate(inputs.to(device), max_new_tokens=100, do_sample=False)
|
78 |
summary = tokenizer.decode(outputs[0], skip_special_tokens=True)
|
79 |
st.subheader('Summary')
|
80 |
st.markdown(summary)
|
81 |
else:
|
82 |
+
st.markdown(':red[Subtitles are disabled for this video]')
|
83 |
else:
|
84 |
+
st.markdown(':red[Video clip is not detected]')
|