Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
|
@@ -8,6 +8,21 @@
|
|
| 8 |
# import nest_asyncio; nest_asyncio.apply()
|
| 9 |
# ============================================================
|
| 10 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 11 |
import asyncio, aiohttp, io, os
|
| 12 |
import pandas as pd
|
| 13 |
import numpy as np
|
|
|
|
| 8 |
# import nest_asyncio; nest_asyncio.apply()
|
| 9 |
# ============================================================
|
| 10 |
|
| 11 |
+
|
| 12 |
+
# ---- huggingface_hub 1.x compatibility shim for gradio 4.44 ----
|
| 13 |
+
import huggingface_hub
|
| 14 |
+
if not hasattr(huggingface_hub, "HfFolder"):
|
| 15 |
+
class HfFolder:
|
| 16 |
+
path_token = None
|
| 17 |
+
@staticmethod
|
| 18 |
+
def get_token(): return None
|
| 19 |
+
@staticmethod
|
| 20 |
+
def save_token(token): pass
|
| 21 |
+
@staticmethod
|
| 22 |
+
def delete_token(): pass
|
| 23 |
+
huggingface_hub.HfFolder = HfFolder
|
| 24 |
+
# ---- end shim ----
|
| 25 |
+
|
| 26 |
import asyncio, aiohttp, io, os
|
| 27 |
import pandas as pd
|
| 28 |
import numpy as np
|