Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -20,7 +20,6 @@ character_avatars = {
|
|
| 20 |
"Harry Potter": "harry.png",
|
| 21 |
"Hermione Granger": "hermione.png",
|
| 22 |
"poor Ph.D. student": "phd.png",
|
| 23 |
-
"Donald Trump": "trump.png",
|
| 24 |
"a super cute red panda": "red_panda.png"
|
| 25 |
}
|
| 26 |
|
|
@@ -29,7 +28,7 @@ BACKUP_API_KEY_0 = os.environ.get('BACKUP_API_KEY_0')
|
|
| 29 |
BACKUP_API_KEY_1 = os.environ.get('BACKUP_API_KEY_1')
|
| 30 |
BACKUP_API_KEYS = [BACKUP_API_KEY_0, BACKUP_API_KEY_1]
|
| 31 |
|
| 32 |
-
predefined_characters = ["Harry Potter", "Hermione Granger", "poor Ph.D. student", "
|
| 33 |
|
| 34 |
def get_character(dropdown_value, custom_value):
|
| 35 |
return custom_value if dropdown_value == "Custom" else dropdown_value
|
|
|
|
| 20 |
"Harry Potter": "harry.png",
|
| 21 |
"Hermione Granger": "hermione.png",
|
| 22 |
"poor Ph.D. student": "phd.png",
|
|
|
|
| 23 |
"a super cute red panda": "red_panda.png"
|
| 24 |
}
|
| 25 |
|
|
|
|
| 28 |
BACKUP_API_KEY_1 = os.environ.get('BACKUP_API_KEY_1')
|
| 29 |
BACKUP_API_KEYS = [BACKUP_API_KEY_0, BACKUP_API_KEY_1]
|
| 30 |
|
| 31 |
+
predefined_characters = ["Harry Potter", "Hermione Granger", "poor Ph.D. student", "a super cute red panda"]
|
| 32 |
|
| 33 |
def get_character(dropdown_value, custom_value):
|
| 34 |
return custom_value if dropdown_value == "Custom" else dropdown_value
|