Spaces:
Running
on
Zero
Running
on
Zero
kwabs22
commited on
Commit
·
432c1ec
1
Parent(s):
756ea61
Load game supports media now?
Browse files
app.py
CHANGED
@@ -536,12 +536,15 @@ def load_game(custom_config=None, with_media=False):
|
|
536 |
media = None
|
537 |
output_media = None
|
538 |
|
|
|
539 |
if with_media:
|
540 |
if all_states[starting_location][starting_state][media]:
|
541 |
media = all_states[starting_location][starting_state][media]
|
|
|
542 |
for media_path in media:
|
543 |
media_component = create_media_component(media_path)
|
544 |
output_media.append(media_component)
|
|
|
545 |
return gr.update(value=f"Custom configuration loaded successfully! \n{new_path_errors}"), game_log, description, gr.update(choices=choices), game_session, gr.update(value=custom_config), output_media
|
546 |
|
547 |
return gr.update(value=f"Custom configuration loaded successfully! \n{new_path_errors}"), game_log, description, gr.update(choices=choices), game_session, gr.update(value=custom_config)
|
|
|
536 |
media = None
|
537 |
output_media = None
|
538 |
|
539 |
+
print("everything fine till here")
|
540 |
if with_media:
|
541 |
if all_states[starting_location][starting_state][media]:
|
542 |
media = all_states[starting_location][starting_state][media]
|
543 |
+
print("everything fine till here 2")
|
544 |
for media_path in media:
|
545 |
media_component = create_media_component(media_path)
|
546 |
output_media.append(media_component)
|
547 |
+
print("everything fine till here 3")
|
548 |
return gr.update(value=f"Custom configuration loaded successfully! \n{new_path_errors}"), game_log, description, gr.update(choices=choices), game_session, gr.update(value=custom_config), output_media
|
549 |
|
550 |
return gr.update(value=f"Custom configuration loaded successfully! \n{new_path_errors}"), game_log, description, gr.update(choices=choices), game_session, gr.update(value=custom_config)
|