Spaces:
Runtime error
Runtime error
kbberendsen
commited on
Commit
•
35e393c
1
Parent(s):
4eb23c0
offline mode true
Browse files- __pycache__/app.cpython-311.pyc +0 -0
- app.py +3 -1
__pycache__/app.cpython-311.pyc
CHANGED
Binary files a/__pycache__/app.cpython-311.pyc and b/__pycache__/app.cpython-311.pyc differ
|
|
app.py
CHANGED
@@ -13,7 +13,9 @@ cache_path = os.getcwd() + "/cache"
|
|
13 |
print(f"Cache path: {cache_path}")
|
14 |
|
15 |
ff1.Cache.enable_cache(cache_path)
|
16 |
-
|
|
|
|
|
17 |
|
18 |
app_ui = ui.page_fluid(
|
19 |
shinyswatch.theme.minty(),
|
|
|
13 |
print(f"Cache path: {cache_path}")
|
14 |
|
15 |
ff1.Cache.enable_cache(cache_path)
|
16 |
+
|
17 |
+
# Offline mode to prevent F1 API crashes on Hugging Face
|
18 |
+
ff1.Cache.offline_mode(enabled=True)
|
19 |
|
20 |
app_ui = ui.page_fluid(
|
21 |
shinyswatch.theme.minty(),
|