File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed
06_gpu_and_ml/speech-to-text
07_web_endpoints/fasthtml-checkboxes Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change 55
66import math
77import os
8- from pathlib import Path
98import sys
109import tempfile
1110import wave
11+ from pathlib import Path
1212from typing import Callable , Sequence
1313from urllib .request import urlopen
1414
Original file line number Diff line number Diff line change 3030db = modal .Dict .from_name ("example-fasthtml-checkboxes-db" , create_if_missing = True )
3131
3232css_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 ],
You can’t perform that action at this time.
0 commit comments