Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix for 243 #248

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions javascript/t2v_progressbar.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,3 +14,8 @@ function submit_txt2vid(){

return res
}

function setSubmitButtonsVisibility(tabname, showInterrupt, showSkip, showInterrupting) {
gradioApp().getElementById(tabname + '_interrupt').style.display = showInterrupt ? "block" : "none";
gradioApp().getElementById(tabname + '_skip').style.display = showSkip ? "block" : "none";
}
2 changes: 1 addition & 1 deletion scripts/modelscope/clip_hardcode.py
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,7 @@ def tokenize_line(self, line):
Returns the list and the total number of tokens in the prompt.
"""

if opts.enable_emphasis:
if hasattr(opts, 'enable_emphasis') and opts.enable_emphasis:
parsed = prompt_parser.parse_prompt_attention(line)
else:
parsed = [[line, 1.0]]
Expand Down