Kashaf1 commited on
Commit
0ea2135
·
1 Parent(s): ee19ea2

Uploaded complete moirai_forecast_app contents

Browse files
Files changed (2) hide show
  1. README.md +8 -0
  2. requirements.txt +9 -0
README.md CHANGED
@@ -121,6 +121,14 @@ worth recording because the diagnosis process matters as much as the fix:
121
  prebuilt wheel instead of a source build. No requirements.txt change
122
  was actually needed — my earlier "fix" there was chasing the wrong
123
  variable, corrected here for the record rather than quietly erased.
 
 
 
 
 
 
 
 
124
 
125
  ## Architecture
126
 
 
121
  prebuilt wheel instead of a source build. No requirements.txt change
122
  was actually needed — my earlier "fix" there was chasing the wrong
123
  variable, corrected here for the record rather than quietly erased.
124
+ 4. **Third failure, at runtime this time**: the build succeeded (scipy
125
+ installed as a wheel), but `import gradio` crashed with
126
+ `ImportError: cannot import name 'HfFolder' from 'huggingface_hub'`.
127
+ `huggingface_hub` 1.0 removed the long-deprecated `HfFolder` class;
128
+ `gradio==4.44.0`'s `oauth.py` still imports it unconditionally.
129
+ `uni2ts` only floors `huggingface_hub>=0.23.0` with no upper bound,
130
+ so pip picked the newest 1.x. **Fix**: `requirements.txt` now pins
131
+ `huggingface_hub>=0.23.0,<1.0`.
132
 
133
  ## Architecture
134
 
requirements.txt CHANGED
@@ -3,6 +3,15 @@ uni2ts>=2.0.0
3
  torch>=2.1
4
  gluonts>=0.14
5
 
 
 
 
 
 
 
 
 
 
6
  # Data
7
  yfinance>=0.2.40
8
  pandas>=2.0
 
3
  torch>=2.1
4
  gluonts>=0.14
5
 
6
+ # Pinned explicitly: huggingface_hub 1.0+ removed the HfFolder class,
7
+ # but gradio 4.44.x's oauth.py still does `from huggingface_hub import
8
+ # HfFolder, whoami` unconditionally at import time -- so `import gradio`
9
+ # crashes immediately on any resolution that picks huggingface_hub>=1.0.
10
+ # uni2ts only floors huggingface_hub>=0.23.0 with no ceiling, so without
11
+ # this pin pip is free to grab the latest 1.x. Confirmed against a real
12
+ # Space's runtime traceback, not a guess.
13
+ huggingface_hub>=0.23.0,<1.0
14
+
15
  # Data
16
  yfinance>=0.2.40
17
  pandas>=2.0