Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -220,11 +220,11 @@ CONCEPTS = {
|
|
220 |
}
|
221 |
}
|
222 |
|
223 |
-
#
|
224 |
ANIMATION_EXAMPLES = {
|
225 |
-
"loop": "https://
|
226 |
-
"conditional": "https://
|
227 |
-
"function": "https://
|
228 |
}
|
229 |
|
230 |
# Initialize AI models
|
@@ -319,9 +319,9 @@ def create_animation_preview(story, concept):
|
|
319 |
"""Create an animation preview for the concept"""
|
320 |
try:
|
321 |
# Return a sample GIF for the concept
|
322 |
-
return ANIMATION_EXAMPLES.get(concept, "https://
|
323 |
except:
|
324 |
-
return "https://
|
325 |
|
326 |
def text_to_speech_custom(text, models, filename="story_audio.wav"):
|
327 |
"""Convert text to speech using AI model"""
|
|
|
220 |
}
|
221 |
}
|
222 |
|
223 |
+
# Updated animation examples with reliable URLs
|
224 |
ANIMATION_EXAMPLES = {
|
225 |
+
"loop": "https://media.giphy.com/media/3o7abKhOpu0NwenH3O/giphy.gif",
|
226 |
+
"conditional": "https://media.giphy.com/media/l0HlG8vJXW0X5yX4s/giphy.gif",
|
227 |
+
"function": "https://media.giphy.com/media/3o7TKsQ8UQ4l4LhGz6/giphy.gif"
|
228 |
}
|
229 |
|
230 |
# Initialize AI models
|
|
|
319 |
"""Create an animation preview for the concept"""
|
320 |
try:
|
321 |
# Return a sample GIF for the concept
|
322 |
+
return ANIMATION_EXAMPLES.get(concept, "https://media.giphy.com/media/3o7abKhOpu0NwenH3O/giphy.gif")
|
323 |
except:
|
324 |
+
return "https://media.giphy.com/media/3o7abKhOpu0NwenH3O/giphy.gif"
|
325 |
|
326 |
def text_to_speech_custom(text, models, filename="story_audio.wav"):
|
327 |
"""Convert text to speech using AI model"""
|