Spaces:
Runtime error
Runtime error
Commit History
4 days ago
-
Fix startup crash: AttributeError (gradio-api-drift)
Verified signatureHi! This Space currently fails to start on Hugging Face with: ``` AttributeError: module 'gradio' has no attribute 'inputs' ``` **Cause.** The Space fails on current libraries for two reasons: app.py uses removed Gradio 3 APIs (`gr.inputs.Image`, `gr.outputs.Textbox`), causing `AttributeError: module 'gradio' has no attribute 'inputs'`, and the rebuilt environment pairs Gradio 4.32.1 with a huggingface_hub version that no longer exports `HfFolder`, causing `ImportError: cannot import name 'HfFolder'`. Pinning the dependency era restores the Gradio 4-compatible huggingface_hub, while updating the two component calls restores the original image/text interface. **Change.** `README.md`, `app.py`, `requirements.txt`. `requirements.txt` is a lockfile resolved as of 2024-06-15 (Python 3.10), so the app runs on the library versions it was written for. `python_version` is pinned in the README to the interpreter we tested with. Nothing else is touched. **Tested.** We rebuilt the Space with t…c70b05c
-
Update README.md
Verified signaturef66a017
-
Update app.py
b072469
-
Update app.py
cddddab
-
Update app.py
947217a
-
Update README.md
f611f2f
-
Delete items.py
f801f97 -
Create items.py
f536fc5 -
Update app.py
e7a2aef -
Update app.py
df55b81
-
Create app2.py
d775059
-
Update app.py
8bbfb69 -
Upload example6.jpg
6633466 -
Upload example5.jpg
b5dff2e -
Upload example4.jpg
5b898bd -
Update app.py
48f7644 -
Upload example3.jpg
c053ca3 -
Delete example3.webp
52f3272 -
Update app.py
e50d169 -
Update app.py
877b91d -
Update app.py
49fe0a4 -
Update README.md
9838631 -
Update app.py
e42c333 -
Update app.py
60d48cd -
Update app.py
b60e30a -
Update app.py
e37d16c -
Update app.py
cb98ca2 -
Update app.py
e768baf -
Update app.py
ea5afdb -
Update app.py
7517711 -
Upload example3.webp
e16f2b7 -
Upload example1.jpg
864f9af -
Upload example2.jpg
f9e16f4 -
Update app.py
910eeb1 -
Delete examples/MwiCb.jpg
bcf3921 -
Update app.py
acd5c0b -
Delete MwiCb.jpg
925fad2 -
Delete examples/example1
d5c8890 -
Upload MwiCb.jpg
884c97c -
Create example1
b9a2b16 -
examples/
88d0372 -
Update app.py
05f2aaa -
Update app.py
d52fc21 -
Update app.py
56b9e35 -
Update app.py
fd823f5 -
Update app.py
53313b7 -
Update app.py
0c25281 -
Update app.py
3a01033 -
Update app.py
371b6c0 -
Update app.py
191c3b2