Skip to content

Commit af85a36

Browse files
committed
hotfix for changes in #1483
1 parent 231909e commit af85a36

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

06_gpu_and_ml/speech-to-text/asr_utils.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,10 @@
55

66
import math
77
import os
8-
from pathlib import Path
98
import sys
109
import tempfile
1110
import wave
11+
from pathlib import Path
1212
from typing import Callable, Sequence
1313
from urllib.request import urlopen
1414

07_web_endpoints/fasthtml-checkboxes/fasthtml_checkboxes.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@
3030
db = modal.Dict.from_name("example-fasthtml-checkboxes-db", create_if_missing=True)
3131

3232
css_path_local = Path(__file__).parent / "styles.css"
33-
css_path_remote = Path("/assets/styles.css")
33+
css_path_remote = "/assets/styles.css"
3434

3535

3636
@app.function(
@@ -76,7 +76,7 @@ async def on_shutdown():
7676
db["checkboxes"] = checkboxes
7777
print("Checkbox state persisted.")
7878

79-
style = css_path_remote.read_text()
79+
style = Path(css_path_remote).read_text()
8080
app, _ = fh.fast_app(
8181
# FastHTML uses the ASGI spec, which allows handling of shutdown events
8282
on_shutdown=[on_shutdown],

0 commit comments

Comments
 (0)