Skip to content

Commit

Permalink
title change
Browse files Browse the repository at this point in the history
  • Loading branch information
wayne committed Aug 11, 2024
1 parent d903235 commit d8c4091
Show file tree
Hide file tree
Showing 6 changed files with 17 additions and 15 deletions.
2 changes: 2 additions & 0 deletions config/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@

from tools.file_utils import read_yaml, save_yaml

app_title = "AI搞钱工具"

local_audio_tts_providers = ['chatTTS', ]
local_audio_recognition_providers = ['fasterwhisper', ]
local_audio_recognition_fasterwhisper_module_names = ['large-v3', 'large-v2', 'large-v1', 'distil-large-v3',
Expand Down
6 changes: 3 additions & 3 deletions gui.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,16 +2,16 @@
from config.config import my_config, save_config, languages, test_config, local_audio_tts_providers, \
local_audio_recognition_providers, local_audio_recognition_fasterwhisper_module_names, \
local_audio_recognition_fasterwhisper_device_types, local_audio_recognition_fasterwhisper_compute_types, \
delete_first_visit_session_state
delete_first_visit_session_state, app_title
from pages.common import common_ui
from tools.tr_utils import tr

delete_first_visit_session_state("all_first_visit")

common_ui()

st.markdown("<h1 style='text-align: center; font-weight:bold; font-family:comic sans ms; padding-top: 0rem;'> \
AI搞钱工具</h1>", unsafe_allow_html=True)
st.markdown(f"<h1 style='text-align: center; font-weight:bold; font-family:comic sans ms; padding-top: 0rem;'> \
{app_title}</h1>", unsafe_allow_html=True)
st.markdown("<h2 style='text-align: center;padding-top: 0rem;'>基本配置信息</h2>", unsafe_allow_html=True)


Expand Down
6 changes: 3 additions & 3 deletions pages/01_auto_video.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import streamlit as st

from config.config import my_config, save_config, languages, audio_languages, transition_types, \
fade_list, audio_types, load_session_state_from_yaml, save_session_state_to_yaml
fade_list, audio_types, load_session_state_from_yaml, save_session_state_to_yaml, app_title
from main import main_generate_video_content, main_generate_ai_video, main_generate_video_dubbing, \
main_get_video_resource, main_generate_subtitle, main_try_test_audio, get_audio_voices, main_try_test_local_audio
from pages.common import common_ui
Expand Down Expand Up @@ -69,8 +69,8 @@ def generate_video(video_generator):
main_generate_ai_video(video_generator)


st.markdown("<h1 style='text-align: center; font-weight:bold; font-family:comic sans ms; padding-top: 0rem;'> \
AI搞钱工具</h1>", unsafe_allow_html=True)
st.markdown(f"<h1 style='text-align: center; font-weight:bold; font-family:comic sans ms; padding-top: 0rem;'> \
{app_title}</h1>", unsafe_allow_html=True)
st.markdown("<h2 style='text-align: center;padding-top: 0rem;'>自动短视频生成器</h2>", unsafe_allow_html=True)

# LLM区域
Expand Down
6 changes: 3 additions & 3 deletions pages/02_merge_video.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
import streamlit as st

from config.config import transition_types, fade_list, load_session_state_from_yaml, \
save_session_state_to_yaml
save_session_state_to_yaml, app_title
from main import main_try_test_audio, main_try_test_local_audio, main_generate_ai_video_for_merge
from pages.common import common_ui
from tools.tr_utils import tr
Expand Down Expand Up @@ -73,8 +73,8 @@ def generate_video_for_merge(video_generator):

common_ui()

st.markdown("<h1 style='text-align: center; font-weight:bold; font-family:comic sans ms; padding-top: 0rem;'> \
AI搞钱工具</h1>", unsafe_allow_html=True)
st.markdown(f"<h1 style='text-align: center; font-weight:bold; font-family:comic sans ms; padding-top: 0rem;'> \
{app_title}</h1>", unsafe_allow_html=True)
st.markdown("<h2 style='text-align: center;padding-top: 0rem;'>视频批量合并工具</h2>", unsafe_allow_html=True)

# 场景设置
Expand Down
6 changes: 3 additions & 3 deletions pages/02_mix_video.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
import streamlit as st

from config.config import transition_types, fade_list, audio_languages, audio_types, load_session_state_from_yaml, \
save_session_state_to_yaml
save_session_state_to_yaml, app_title
from main import main_generate_ai_video_for_mix, main_try_test_audio, get_audio_voices, main_try_test_local_audio
from pages.common import common_ui
from tools.tr_utils import tr
Expand Down Expand Up @@ -74,8 +74,8 @@ def generate_video_for_mix(video_generator):

common_ui()

st.markdown("<h1 style='text-align: center; font-weight:bold; font-family:comic sans ms; padding-top: 0rem;'> \
AI搞钱工具</h1>", unsafe_allow_html=True)
st.markdown(f"<h1 style='text-align: center; font-weight:bold; font-family:comic sans ms; padding-top: 0rem;'> \
{app_title}</h1>", unsafe_allow_html=True)
st.markdown("<h2 style='text-align: center;padding-top: 0rem;'>视频批量混剪工具</h2>", unsafe_allow_html=True)

# 场景设置
Expand Down
6 changes: 3 additions & 3 deletions pages/03_auto_publish.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
import streamlit as st

from config.config import driver_types, my_config, save_config, test_config, load_session_state_from_yaml, \
save_session_state_to_yaml
save_session_state_to_yaml, app_title
from pages.common import common_ui
from services.publisher.open_test import start_all_pages
from services.publisher.publish_video import publish_all, publish_file
Expand Down Expand Up @@ -216,8 +216,8 @@ def start_publish_video():

common_ui()

st.markdown("<h1 style='text-align: center; font-weight:bold; font-family:comic sans ms; padding-top: 0rem;'> \
AI搞钱工具</h1>", unsafe_allow_html=True)
st.markdown(f"<h1 style='text-align: center; font-weight:bold; font-family:comic sans ms; padding-top: 0rem;'> \
{app_title}</h1>", unsafe_allow_html=True)
st.markdown("<h2 style='text-align: center;padding-top: 0rem;'>视频批量自动发布工具</h2>", unsafe_allow_html=True)

# 选择要发布的视频目录
Expand Down

0 comments on commit d8c4091

Please sign in to comment.