Spaces:
Runtime error
Runtime error
Karan Goel
commited on
Commit
ยท
e3adc12
1
Parent(s):
99d06a3
update
Browse files- tutorial-1.py +3 -3
tutorial-1.py
CHANGED
@@ -63,9 +63,9 @@ from fastapi.staticfiles import StaticFiles
|
|
63 |
# f'VITE_API_URL||"{api_url}"',
|
64 |
# "*.js",
|
65 |
# )
|
66 |
-
from meerkat.constants import
|
67 |
-
print(
|
68 |
print("Mounting static files...")
|
69 |
-
page().mount("/", StaticFiles(directory=os.path.abspath(
|
70 |
# page().mount("/static", StaticFiles(directory=os.path.abspath("./temp/"),html = True), "test")
|
71 |
page.launch()
|
|
|
63 |
# f'VITE_API_URL||"{api_url}"',
|
64 |
# "*.js",
|
65 |
# )
|
66 |
+
from meerkat.constants import PathHelper
|
67 |
+
print(PathHelper.appdir)
|
68 |
print("Mounting static files...")
|
69 |
+
page().mount("/", StaticFiles(directory=os.path.abspath(PathHelper.appdir + "build/"), html=True), "test")
|
70 |
# page().mount("/static", StaticFiles(directory=os.path.abspath("./temp/"),html = True), "test")
|
71 |
page.launch()
|