Lint
This commit is contained in:
parent
280ae720d7
commit
1edf321362
2 changed files with 1 additions and 2 deletions
|
@ -5,7 +5,6 @@ from typing import Optional, Tuple
|
||||||
import torch
|
import torch
|
||||||
import torch.nn as nn
|
import torch.nn as nn
|
||||||
|
|
||||||
|
|
||||||
import modules.shared as shared
|
import modules.shared as shared
|
||||||
from modules.logging_colors import logger
|
from modules.logging_colors import logger
|
||||||
|
|
||||||
|
|
|
@ -191,7 +191,7 @@ for k in ['chat', 'notebook', 'no_stream', 'mul_mat_q']:
|
||||||
# Security warnings
|
# Security warnings
|
||||||
if args.trust_remote_code:
|
if args.trust_remote_code:
|
||||||
logger.warning('trust_remote_code is enabled. This is dangerous.')
|
logger.warning('trust_remote_code is enabled. This is dangerous.')
|
||||||
if not 'COLAB_GPU' in os.environ:
|
if 'COLAB_GPU' not in os.environ:
|
||||||
if args.share:
|
if args.share:
|
||||||
logger.warning("The gradio \"share link\" feature uses a proprietary executable to create a reverse tunnel. Use it with care.")
|
logger.warning("The gradio \"share link\" feature uses a proprietary executable to create a reverse tunnel. Use it with care.")
|
||||||
if any((args.listen, args.share)) and not any((args.gradio_auth, args.gradio_auth_path)):
|
if any((args.listen, args.share)) and not any((args.gradio_auth, args.gradio_auth_path)):
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue