Update app.py
Browse files
app.py
CHANGED
|
@@ -1,10 +1,4 @@
|
|
| 1 |
-
The error you're encountering is due to the `HfApi` class not having a `get_user_from_username` method, as this method does not exist in the Hugging Face Hub's Python API.
|
| 2 |
|
| 3 |
-
Instead, you can retrieve user information by searching for models or datasets associated with a specific user and then extracting relevant information, like the Twitter handle, from the metadata. However, direct user information retrieval might not be supported via the Hugging Face Hub API.
|
| 4 |
-
|
| 5 |
-
Here’s an alternative approach using the available methods:
|
| 6 |
-
|
| 7 |
-
```python
|
| 8 |
import streamlit as st
|
| 9 |
from huggingface_hub import HfApi
|
| 10 |
import pandas as pd
|
|
@@ -80,4 +74,3 @@ st.sidebar.markdown("""
|
|
| 80 |
3. View the results in the table and as clickable links.
|
| 81 |
4. The progress bar shows the status of link generation.
|
| 82 |
""")
|
| 83 |
-
```
|
|
|
|
|
|
|
| 1 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 2 |
import streamlit as st
|
| 3 |
from huggingface_hub import HfApi
|
| 4 |
import pandas as pd
|
|
|
|
| 74 |
3. View the results in the table and as clickable links.
|
| 75 |
4. The progress bar shows the status of link generation.
|
| 76 |
""")
|
|
|