Skip to content

Commit

Permalink
Initial release
Browse files Browse the repository at this point in the history
  • Loading branch information
QubitPi committed Oct 5, 2024
1 parent 2a762f4 commit c3ff581
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions app.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down Expand Up @@ -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)
Expand All @@ -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())
Expand Down Expand Up @@ -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)")

0 comments on commit c3ff581

Please sign in to comment.