From c3ff581099316311874d63593d82fa00c5cd6d96 Mon Sep 17 00:00:00 2001 From: Jack Date: Sat, 5 Oct 2024 18:49:29 +0800 Subject: [PATCH] Initial release --- app.py | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/app.py b/app.py index ece6acc..332aadc 100644 --- a/app.py +++ b/app.py @@ -14,7 +14,6 @@ # Define a function that we can use to load lottie files from a link. -@st.cache(allow_output_mutation=True) def load_lottieurl(url: str): r = requests.get(url) if r.status_code != 200: @@ -46,7 +45,6 @@ def load_lottieurl(url: str): ###### I recommend starting with the base model and then experimenting with the larger models, the small and medium models often work well. """) -@st.cache(allow_output_mutation=True) def change_model(current_size, size): if current_size != size: loaded_model = whisper.load_model(size) @@ -55,7 +53,6 @@ def change_model(current_size, size): raise Exception("Model size is the same as the current size.") -@st.cache(allow_output_mutation=True) def inferecence(_loaded_model, uploaded_file, task): with open(f"{save_dir}/input.mp4", "wb") as f: f.write(uploaded_file.read()) @@ -236,4 +233,4 @@ def main(): if __name__ == "__main__": main() st.markdown( - "###### Made with :heart: by [@BatuhanYılmaz](https://github.com/BatuhanYilmaz26) [![this is an image link](https://i.imgur.com/thJhzOO.png)](https://www.buymeacoffee.com/batuhanylmz)") + "###### Made with :heart: by [@QubitPi](https://github.com/QubitPi) [![this is an image link](https://i.imgur.com/thJhzOO.png)](https://buymeacoffee.com/qubitpi)")