BatuhanYilmaz commited on
Commit
82f3dd1
•
1 Parent(s): ed98924

Update pages/02_📼_Upload_Video_File.py

Browse files
pages/02_📼_Upload_Video_File.py CHANGED
@@ -13,7 +13,6 @@ import os
13
  st.set_page_config(page_title="Auto Subtitled Video Generator", page_icon=":movie_camera:", layout="wide")
14
 
15
  # Define a function that we can use to load lottie files from a link.
16
- @st.cache(allow_output_mutation=True)
17
  def load_lottieurl(url: str):
18
  r = requests.get(url)
19
  if r.status_code != 200:
@@ -47,7 +46,6 @@ with col2:
47
  ###### I recommend starting with the base model and then experimenting with the larger models, the small and medium models often work well. """)
48
 
49
 
50
- @st.cache(allow_output_mutation=True)
51
  def change_model(current_size, size):
52
  if current_size != size:
53
  loaded_model = whisper.load_model(size)
@@ -56,7 +54,6 @@ def change_model(current_size, size):
56
  raise Exception("Model size is the same as the current size.")
57
 
58
 
59
- @st.cache(allow_output_mutation=True)
60
  def inferecence(loaded_model, uploaded_file, task):
61
  with open(f"{save_dir}/input.mp4", "wb") as f:
62
  f.write(uploaded_file.read())
 
13
  st.set_page_config(page_title="Auto Subtitled Video Generator", page_icon=":movie_camera:", layout="wide")
14
 
15
  # Define a function that we can use to load lottie files from a link.
 
16
  def load_lottieurl(url: str):
17
  r = requests.get(url)
18
  if r.status_code != 200:
 
46
  ###### I recommend starting with the base model and then experimenting with the larger models, the small and medium models often work well. """)
47
 
48
 
 
49
  def change_model(current_size, size):
50
  if current_size != size:
51
  loaded_model = whisper.load_model(size)
 
54
  raise Exception("Model size is the same as the current size.")
55
 
56
 
 
57
  def inferecence(loaded_model, uploaded_file, task):
58
  with open(f"{save_dir}/input.mp4", "wb") as f:
59
  f.write(uploaded_file.read())