Remove ENV

This commit is contained in:
henryruhs 2024-12-27 15:27:58 +01:00
parent a55e0085f7
commit d14a75c223

View File

@ -72,7 +72,6 @@ def register_ui_component(component_name : ComponentName, component: Component)
def init() -> None:
os.environ['GRADIO_ANALYTICS_ENABLED'] = '0'
os.environ['GRADIO_TEMP_DIR'] = os.path.join(state_manager.get_item('temp_path'), 'gradio')
os.environ['GRADIO_ALLOWED_PATHS'] = '*'
warnings.filterwarnings('ignore', category = UserWarning, module = 'gradio')
gradio.processing_utils._check_allowed = lambda path, check_in_upload_folder: None