creator-o1 commited on
Commit
45be199
·
1 Parent(s): 43a38ab

Fix runtime NameError (get_api_client) and CI ModuleNotFoundError (absolute imports)

Browse files
backend/app/api/routes/stt.py CHANGED
@@ -21,7 +21,7 @@ from ...schemas.stt import (
21
  )
22
  from ...core.config import get_settings
23
  from sqlalchemy.orm import Session
24
- from ...models import get_db, AudioFile, Transcript
25
  from ...workers.tasks import process_audio_file
26
  from celery.result import AsyncResult
27
  from ...schemas.stt import (
 
21
  )
22
  from ...core.config import get_settings
23
  from sqlalchemy.orm import Session
24
+ from app.models import get_db, AudioFile, Transcript
25
  from ...workers.tasks import process_audio_file
26
  from celery.result import AsyncResult
27
  from ...schemas.stt import (
frontend/streamlit_app.py CHANGED
@@ -5,6 +5,7 @@ Premium Speech-to-Text & Text-to-Speech Interface
5
 
6
  import streamlit as st
7
  from pathlib import Path
 
8
 
9
  # Page configuration - must be first Streamlit command
10
  st.set_page_config(
 
5
 
6
  import streamlit as st
7
  from pathlib import Path
8
+ from frontend.services.api_client import get_api_client
9
 
10
  # Page configuration - must be first Streamlit command
11
  st.set_page_config(