📁 File Manager Pro
v10.0.3 | PHP: 8.2.31
Server: LiteSpeed
2026-06-28 02:02:16
📂
/ (Root)
/
opt
/
hc_python
/
lib
/
python3.12
/
site-packages
/
sentry_sdk
/
integrations
/
__pycache__
📍 /opt/hc_python/lib/python3.12/site-packages/sentry_sdk/integrations/__pycache__
🔄 Refresh
✏️
Editing: huggingface_hub.cpython-312.pyc
Read Only
� |�*j!= � �2 � d dl Z d dlZd dlmZ d dlmZ d dlZd dlmZ d dl m Z mZmZ d dl mZmZ d dlmZmZ d dlmZ d d lmZ d d lmZ d dlmZmZmZ erd dlmZmZmZm Z d d l!m"Z" d dl#Z$ G d� de� Z&dd�Z'ddde(ddfd�Z)y# e%$ r ed� �w xY w)� N��wraps)� TYPE_CHECKING)�record_token_usage)�_set_span_data_attribute�get_start_span_function�set_data_normalized)�OP�SPANDATA)�DidNotEnable�Integration)�should_send_default_pii)�StreamedSpan)�has_span_streaming_enabled)�capture_internal_exceptions�event_from_exception�reraise)�Any�Callable�Iterable�Union)�SpanzHuggingface not installedc �D � e Zd ZdZde� �Z d dd deddfd�Zed d�� Zy)�HuggingfaceHubIntegration�huggingface_hubzauto.ai.�self�include_prompts�returnNc � � || _ y �N)r )r r s �V/opt/hc_python/lib/python3.12/site-packages/sentry_sdk/integrations/huggingface_hub.py�__init__z"HuggingfaceHubIntegration.__init__'