Skip to content

Commit

Permalink
nits cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
thundergolfer committed Jul 26, 2023
1 parent 9cccea8 commit 9afe394
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion 06_gpu_and_ml/openai_whisper/pod_transcriber/app/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@
secrets=[Secret.from_name("podchaser")],
)

stub.in_progress = Dict()
stub.in_progress = Dict.new()


def utc_now() -> datetime.datetime:
Expand Down
2 changes: 1 addition & 1 deletion misc/gpt2_language_model.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,10 @@

stub = modal.Stub("example-gpt2")

# volume = modal.NetworkFileSystem().persist("gpt2")
CACHE_PATH = "/root/model_cache"


# Run as a build function to save the model files into the custom `modal.Image`.
def download_model():
from transformers import pipeline

Expand Down

0 comments on commit 9afe394

Please sign in to comment.