mirror of https://github.com/InternLM/InternLM
[CI]: fix isort
parent
b00f04ba2b
commit
2243fb82aa
|
@ -17,6 +17,7 @@
|
||||||
# See the License for the specific language governing permissions and
|
# See the License for the specific language governing permissions and
|
||||||
# limitations under the License.
|
# limitations under the License.
|
||||||
|
|
||||||
|
# isort: skip_file
|
||||||
import argparse
|
import argparse
|
||||||
import copy
|
import copy
|
||||||
import json
|
import json
|
||||||
|
|
|
@ -14,6 +14,7 @@ Please run with the command `streamlit run path/to/web_demo.py
|
||||||
--server.address=0.0.0.0 --server.port 7860`.
|
--server.address=0.0.0.0 --server.port 7860`.
|
||||||
Using `python path/to/web_demo.py` may cause unknown problems.
|
Using `python path/to/web_demo.py` may cause unknown problems.
|
||||||
"""
|
"""
|
||||||
|
# isort: skip_file
|
||||||
import copy
|
import copy
|
||||||
import warnings
|
import warnings
|
||||||
from dataclasses import asdict, dataclass
|
from dataclasses import asdict, dataclass
|
||||||
|
@ -22,7 +23,7 @@ from typing import Callable, List, Optional
|
||||||
import streamlit as st
|
import streamlit as st
|
||||||
import torch
|
import torch
|
||||||
from torch import nn
|
from torch import nn
|
||||||
from transformers.generation.utils import (LogitsProcessorList,
|
from transformers.generation.utils import (LogitsProcessorList,
|
||||||
StoppingCriteriaList)
|
StoppingCriteriaList)
|
||||||
from transformers.utils import logging
|
from transformers.utils import logging
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue