Skip to content

Update Code Imports #199

@ilay01

Description

@ilay01

When running the code in the course, I always run into the error File "/Users/honeylemon/Documents/MCP/.venv/lib/python3.9/site-packages/gradio/oauth.py", line 13, in
from huggingface_hub import HfFolder, whoami
ImportError: cannot import name 'HfFolder' from 'huggingface_hub' (/Users/honeylemon/Documents/MCP/.venv/lib/python3.9/site-packages/huggingface_hub/init.py)

Seems to be that the packages used there are outdated.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions