From 928ce11b514da58463b19b605031dfd8014738ad Mon Sep 17 00:00:00 2001 From: ZeroCool940711 Date: Mon, 31 Oct 2022 02:31:00 -0700 Subject: [PATCH] Changed text on the txt2vid to point people to Settings page where they can add their huggingface token. --- scripts/txt2vid.py | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/scripts/txt2vid.py b/scripts/txt2vid.py index f71e64c..8b8979b 100644 --- a/scripts/txt2vid.py +++ b/scripts/txt2vid.py @@ -1166,9 +1166,11 @@ def load_diffusers_model(weights_path,torch_device): if "huggingface_token" not in st.session_state or st.session_state["defaults"].general.huggingface_token == "None": if "progress_bar_text" in st.session_state: st.session_state["progress_bar_text"].error( - "You need a huggingface token in order to use the Text to Video tab. Use the Settings page from the sidebar on the left to add your token." - ) - raise OSError("You need a huggingface token in order to use the Text to Video tab. Use the Settings page from the sidebar on the left to add your token.") + "You need a huggingface token in order to use the Text to Video tab. Use the Settings page to add your token under the Huggingface section. " + "Make sure you save your settings after adding it." + ) + raise OSError("You need a huggingface token in order to use the Text to Video tab. Use the Settings page to add your token under the Huggingface section. " + "Make sure you save your settings after adding it.") else: if "progress_bar_text" in st.session_state: st.session_state["progress_bar_text"].error(e)