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 README.md
f611f2f
-
Update README.md
9838631 -
initial commit
30fc802