Spaces:
Sleeping
Sleeping
feat: update file paths to use relative imports for consistency
Browse files- README.md +1 -1
- app.py → src/app.py +1 -1
- src/main.py +8 -8
README.md
CHANGED
|
@@ -6,7 +6,7 @@ colorTo: green
|
|
| 6 |
sdk: gradio
|
| 7 |
sdk_version: 5.32.0
|
| 8 |
python_version: "3.11"
|
| 9 |
-
app_file: app.py
|
| 10 |
pinned: false
|
| 11 |
license: mit
|
| 12 |
---
|
|
|
|
| 6 |
sdk: gradio
|
| 7 |
sdk_version: 5.32.0
|
| 8 |
python_version: "3.11"
|
| 9 |
+
app_file: src/app.py
|
| 10 |
pinned: false
|
| 11 |
license: mit
|
| 12 |
---
|
app.py → src/app.py
RENAMED
|
@@ -42,4 +42,4 @@ atexit.register(redis_process.terminate)
|
|
| 42 |
time.sleep(0.5)
|
| 43 |
|
| 44 |
# Import and run the Gradio app
|
| 45 |
-
import
|
|
|
|
| 42 |
time.sleep(0.5)
|
| 43 |
|
| 44 |
# Import and run the Gradio app
|
| 45 |
+
import main # noqa: F401
|
src/main.py
CHANGED
|
@@ -1,15 +1,15 @@
|
|
| 1 |
import gradio as gr
|
| 2 |
-
from
|
| 3 |
-
from
|
| 4 |
update_audio,
|
| 5 |
cleanup_music_session,
|
| 6 |
)
|
| 7 |
import logging
|
| 8 |
-
from
|
| 9 |
-
from
|
| 10 |
-
from
|
| 11 |
import uuid
|
| 12 |
-
from
|
| 13 |
SETTING_SUGGESTIONS,
|
| 14 |
CHARACTER_SUGGESTIONS,
|
| 15 |
GENRE_OPTIONS,
|
|
@@ -18,8 +18,8 @@ from src.game_constructor import (
|
|
| 18 |
start_game_with_settings,
|
| 19 |
)
|
| 20 |
import asyncio
|
| 21 |
-
from
|
| 22 |
-
from
|
| 23 |
|
| 24 |
logger = logging.getLogger(__name__)
|
| 25 |
|
|
|
|
| 1 |
import gradio as gr
|
| 2 |
+
from css import custom_css, loading_css_styles
|
| 3 |
+
from audio.audio_generator import (
|
| 4 |
update_audio,
|
| 5 |
cleanup_music_session,
|
| 6 |
)
|
| 7 |
import logging
|
| 8 |
+
from agent.llm_agent import process_user_input
|
| 9 |
+
from images.image_generator import modify_image
|
| 10 |
+
from agent.runner import process_step
|
| 11 |
import uuid
|
| 12 |
+
from game_constructor import (
|
| 13 |
SETTING_SUGGESTIONS,
|
| 14 |
CHARACTER_SUGGESTIONS,
|
| 15 |
GENRE_OPTIONS,
|
|
|
|
| 18 |
start_game_with_settings,
|
| 19 |
)
|
| 20 |
import asyncio
|
| 21 |
+
from game_setting import get_user_story
|
| 22 |
+
from config import settings
|
| 23 |
|
| 24 |
logger = logging.getLogger(__name__)
|
| 25 |
|