Sort imports

This commit is contained in:
oobabooga 2023-04-07 14:42:03 -03:00
parent 962e33dc10
commit 1dc464dcb0
8 changed files with 9 additions and 8 deletions

View File

@ -2,10 +2,11 @@ import re
from pathlib import Path from pathlib import Path
import gradio as gr import gradio as gr
import modules.shared as shared
from elevenlabslib import ElevenLabsUser from elevenlabslib import ElevenLabsUser
from elevenlabslib.helpers import save_bytes_to_path from elevenlabslib.helpers import save_bytes_to_path
import modules.shared as shared
params = { params = {
'activate': True, 'activate': True,
'api_key': '12345', 'api_key': '12345',

View File

@ -1,7 +1,8 @@
import gradio as gr import gradio as gr
import modules.shared as shared
import pandas as pd import pandas as pd
import modules.shared as shared
df = pd.read_csv("https://raw.githubusercontent.com/devbrones/llama-prompts/main/prompts/prompts.csv") df = pd.read_csv("https://raw.githubusercontent.com/devbrones/llama-prompts/main/prompts/prompts.csv")

View File

@ -4,12 +4,12 @@ import re
from pathlib import Path from pathlib import Path
import gradio as gr import gradio as gr
import modules.chat as chat
import modules.shared as shared
import requests import requests
import torch import torch
from PIL import Image from PIL import Image
from modules import chat, shared
torch._C._jit_set_profiling_mode(False) torch._C._jit_set_profiling_mode(False)
# parameters which can be customized in settings.json of webui # parameters which can be customized in settings.json of webui

View File

@ -3,6 +3,7 @@ from pathlib import Path
import gradio as gr import gradio as gr
import torch import torch
from extensions.silero_tts import tts_preprocessor from extensions.silero_tts import tts_preprocessor
from modules import chat, shared from modules import chat, shared
from modules.html_generator import chat_html_wrapper from modules.html_generator import chat_html_wrapper

View File

@ -2,7 +2,6 @@ import time
from pathlib import Path from pathlib import Path
import torch import torch
import tts_preprocessor import tts_preprocessor
torch._C._jit_set_profiling_mode(False) torch._C._jit_set_profiling_mode(False)

View File

@ -2,7 +2,6 @@ import re
from num2words import num2words from num2words import num2words
punctuation = r'[\s,.?!/)\'\]>]' punctuation = r'[\s,.?!/)\'\]>]'
alphabet_map = { alphabet_map = {
"A": " Ei ", "A": " Ei ",

View File

@ -12,7 +12,7 @@ from PIL import Image
import modules.extensions as extensions_module import modules.extensions as extensions_module
import modules.shared as shared import modules.shared as shared
from modules.extensions import apply_extensions from modules.extensions import apply_extensions
from modules.html_generator import (fix_newlines, chat_html_wrapper, from modules.html_generator import (chat_html_wrapper, fix_newlines,
make_thumbnail) make_thumbnail)
from modules.text_generation import (encode, generate_reply, from modules.text_generation import (encode, generate_reply,
get_max_prompt_length) get_max_prompt_length)

View File

@ -15,7 +15,7 @@ import gradio as gr
from PIL import Image from PIL import Image
import modules.extensions as extensions_module import modules.extensions as extensions_module
from modules import chat, shared, training, ui, api from modules import api, chat, shared, training, ui
from modules.html_generator import chat_html_wrapper from modules.html_generator import chat_html_wrapper
from modules.LoRA import add_lora_to_model from modules.LoRA import add_lora_to_model
from modules.models import load_model, load_soft_prompt from modules.models import load_model, load_soft_prompt