Spaces:
Running
on
CPU Upgrade
Running
on
CPU Upgrade
Update app.py
Browse files
app.py
CHANGED
@@ -288,7 +288,7 @@ def randomize_character_content():
|
|
288 |
"A soft hand touches your shoulder. 'I’m {char}, here to heal your wounds—don’t worry, I’ve got you.'"
|
289 |
]
|
290 |
name = f"Character_{random.randint(1000, 9999)}"
|
291 |
-
gender = random.choice(["Male", "Female"
|
292 |
intro = random.choice(intro_templates).format(char=name)
|
293 |
greeting = random.choice(greeting_templates).format(char=name)
|
294 |
return name, gender, intro, greeting
|
@@ -684,8 +684,8 @@ with tab_character_editor:
|
|
684 |
value=default_name,
|
685 |
max_chars=25,
|
686 |
key="char_name")
|
687 |
-
gender = st.radio("Gender", ["Male", "Female"
|
688 |
-
index=["Male", "Female"
|
689 |
key="char_gender")
|
690 |
intro = st.text_area("Intro (Publicly seen)",
|
691 |
value=default_intro,
|
|
|
288 |
"A soft hand touches your shoulder. 'I’m {char}, here to heal your wounds—don’t worry, I’ve got you.'"
|
289 |
]
|
290 |
name = f"Character_{random.randint(1000, 9999)}"
|
291 |
+
gender = random.choice(["Male", "Female"])
|
292 |
intro = random.choice(intro_templates).format(char=name)
|
293 |
greeting = random.choice(greeting_templates).format(char=name)
|
294 |
return name, gender, intro, greeting
|
|
|
684 |
value=default_name,
|
685 |
max_chars=25,
|
686 |
key="char_name")
|
687 |
+
gender = st.radio("Gender", ["Male", "Female"],
|
688 |
+
index=["Male", "Female"].index(default_gender),
|
689 |
key="char_gender")
|
690 |
intro = st.text_area("Intro (Publicly seen)",
|
691 |
value=default_intro,
|