mirror of
https://github.com/oobabooga/text-generation-webui.git
synced 2024-11-22 08:07:56 +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
|
||||
|
||||
'''
|
||||
|
||||
import requests
|
||||
from bs4 import BeautifulSoup
|
||||
import multiprocessing
|
||||
import tqdm
|
||||
import sys
|
||||
import argparse
|
||||
from pathlib import Path
|
||||
import multiprocessing
|
||||
import re
|
||||
import sys
|
||||
from pathlib import Path
|
||||
|
||||
import requests
|
||||
import tqdm
|
||||
from bs4 import BeautifulSoup
|
||||
|
||||
parser = argparse.ArgumentParser()
|
||||
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 json
|
||||
import io
|
||||
import base64
|
||||
import sys
|
||||
import copy
|
||||
import gc
|
||||
import glob
|
||||
import io
|
||||
import json
|
||||
import os
|
||||
import re
|
||||
import sys
|
||||
import time
|
||||
import warnings
|
||||
from datetime import datetime
|
||||
from pathlib import Path
|
||||
from PIL import Image
|
||||
import copy
|
||||
|
||||
import gradio as gr
|
||||
import warnings
|
||||
from tqdm import tqdm
|
||||
import torch
|
||||
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.ui import *
|
||||
from modules.stopping_criteria import _SentinelTokenStoppingCriteria
|
||||
from modules.ui import *
|
||||
|
||||
transformers.logging.set_verbosity_error()
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user