IliaLarchenko commited on
Commit
36bee3f
β€’
1 Parent(s): 1d5a095

Mover config

Browse files
app.py CHANGED
@@ -4,12 +4,13 @@ import gradio as gr
4
 
5
  from api.audio import STTManager, TTSManager
6
  from api.llm import LLMManager
7
- from config import config
8
  from resources.prompts import prompts
9
  from ui.coding import get_problem_solving_ui
10
  from ui.instructions import get_instructions_ui
11
  from utils.params import default_audio_params
12
 
 
13
  llm = LLMManager(config, prompts)
14
  tts = TTSManager(config)
15
  stt = STTManager(config)
 
4
 
5
  from api.audio import STTManager, TTSManager
6
  from api.llm import LLMManager
7
+ from utils.config import Config
8
  from resources.prompts import prompts
9
  from ui.coding import get_problem_solving_ui
10
  from ui.instructions import get_instructions_ui
11
  from utils.params import default_audio_params
12
 
13
+ config = Config()
14
  llm = LLMManager(config, prompts)
15
  tts = TTSManager(config)
16
  stt = STTManager(config)
tests/test_models.py CHANGED
@@ -2,7 +2,7 @@ import pytest
2
 
3
  from api.audio import STTManager, TTSManager
4
  from api.llm import LLMManager
5
- from config import Config
6
 
7
  # Simple placeholder tests so far
8
  # TODO: add more tests including LLM based
 
2
 
3
  from api.audio import STTManager, TTSManager
4
  from api.llm import LLMManager
5
+ from utils.config import Config
6
 
7
  # Simple placeholder tests so far
8
  # TODO: add more tests including LLM based
config.py β†’ utils/config.py RENAMED
@@ -17,6 +17,3 @@ class Config:
17
  self.llm = ServiceConfig("LLM_URL", "LLM_TYPE", "LLM_NAME")
18
  self.stt = ServiceConfig("STT_URL", "STT_TYPE", "STT_NAME")
19
  self.tts = ServiceConfig("TTS_URL", "TTS_TYPE", "TTS_NAME")
20
-
21
-
22
- config = Config()
 
17
  self.llm = ServiceConfig("LLM_URL", "LLM_TYPE", "LLM_NAME")
18
  self.stt = ServiceConfig("STT_URL", "STT_TYPE", "STT_NAME")
19
  self.tts = ServiceConfig("TTS_URL", "TTS_TYPE", "TTS_NAME")