Spaces:
orrinin
/
Runtime error

orrinin commited on
Commit
d6aa524
·
verified ·
1 Parent(s): de5eb4d

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -77,8 +77,8 @@ STYLE_NAMES = list(styles.keys())
77
  DEFAULT_STYLE_NAME = "(无风格)"
78
 
79
  def apply_style(style_name: str, positive: str) -> Tuple[str, str]:
80
- p, n = styles.get(style_name, styles[DEFAULT_STYLE_NAME])
81
- return p.replace("{prompt}", positive), n
82
 
83
  def generate(
84
  prompt: str,
 
77
  DEFAULT_STYLE_NAME = "(无风格)"
78
 
79
  def apply_style(style_name: str, positive: str) -> Tuple[str, str]:
80
+ p = styles.get(style_name, styles[DEFAULT_STYLE_NAME])
81
+ return p.replace("{prompt}", positive)
82
 
83
  def generate(
84
  prompt: str,