mirror of
https://github.com/oobabooga/text-generation-webui.git
synced 2024-11-25 17:29:22 +01:00
Sort imports according to PEP8 (based on #67)
This commit is contained in:
parent
96d56d4f3c
commit
219366342b
@ -5,15 +5,15 @@ Example:
|
|||||||
python download-model.py facebook/opt-1.3b
|
python download-model.py facebook/opt-1.3b
|
||||||
|
|
||||||
'''
|
'''
|
||||||
|
|
||||||
import requests
|
|
||||||
from bs4 import BeautifulSoup
|
|
||||||
import multiprocessing
|
|
||||||
import tqdm
|
|
||||||
import sys
|
|
||||||
import argparse
|
import argparse
|
||||||
from pathlib import Path
|
import multiprocessing
|
||||||
import re
|
import re
|
||||||
|
import sys
|
||||||
|
from pathlib import Path
|
||||||
|
|
||||||
|
import requests
|
||||||
|
import tqdm
|
||||||
|
from bs4 import BeautifulSoup
|
||||||
|
|
||||||
parser = argparse.ArgumentParser()
|
parser = argparse.ArgumentParser()
|
||||||
parser.add_argument('MODEL', type=str)
|
parser.add_argument('MODEL', type=str)
|
||||||
|
32
server.py
32
server.py
@ -1,26 +1,30 @@
|
|||||||
import re
|
|
||||||
import gc
|
|
||||||
import time
|
|
||||||
import glob
|
|
||||||
import torch
|
|
||||||
import argparse
|
import argparse
|
||||||
import json
|
|
||||||
import io
|
|
||||||
import base64
|
import base64
|
||||||
import sys
|
import copy
|
||||||
|
import gc
|
||||||
|
import glob
|
||||||
|
import io
|
||||||
|
import json
|
||||||
import os
|
import os
|
||||||
|
import re
|
||||||
|
import sys
|
||||||
|
import time
|
||||||
|
import warnings
|
||||||
from datetime import datetime
|
from datetime import datetime
|
||||||
from pathlib import Path
|
from pathlib import Path
|
||||||
from PIL import Image
|
|
||||||
import copy
|
|
||||||
import gradio as gr
|
import gradio as gr
|
||||||
import warnings
|
import torch
|
||||||
from tqdm import tqdm
|
|
||||||
import transformers
|
import transformers
|
||||||
from transformers import AutoTokenizer, AutoModelForCausalLM, AutoConfig
|
from PIL import Image
|
||||||
|
from tqdm import tqdm
|
||||||
|
from transformers import AutoConfig
|
||||||
|
from transformers import AutoModelForCausalLM
|
||||||
|
from transformers import AutoTokenizer
|
||||||
|
|
||||||
from modules.html_generator import *
|
from modules.html_generator import *
|
||||||
from modules.ui import *
|
|
||||||
from modules.stopping_criteria import _SentinelTokenStoppingCriteria
|
from modules.stopping_criteria import _SentinelTokenStoppingCriteria
|
||||||
|
from modules.ui import *
|
||||||
|
|
||||||
transformers.logging.set_verbosity_error()
|
transformers.logging.set_verbosity_error()
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user