Spaces:
Running
Running
zach
commited on
Commit
Β·
a807c4d
1
Parent(s):
3ce989d
Organize project structure
Browse files- elevenlabs_api.py +0 -0
- hume_api.py +0 -0
- app.py β src/app.py +3 -3
- config.py β src/config.py +0 -0
- src/integrations/__init__.py +1 -0
- anthropic_api.py β src/integrations/anthropic_api.py +2 -2
- src/integrations/elevenlabs_api.py +1 -0
- src/integrations/hume_api.py +1 -0
- utils.py β src/utils.py +1 -1
elevenlabs_api.py
DELETED
|
File without changes
|
hume_api.py
DELETED
|
File without changes
|
app.py β src/app.py
RENAMED
|
@@ -18,9 +18,9 @@ Functions:
|
|
| 18 |
# Third-Party Library Imports
|
| 19 |
import gradio as gr
|
| 20 |
# Local Application Imports
|
| 21 |
-
from
|
| 22 |
-
from config import logger
|
| 23 |
-
from utils import truncate_text, validate_prompt_length
|
| 24 |
|
| 25 |
|
| 26 |
# Constants
|
|
|
|
| 18 |
# Third-Party Library Imports
|
| 19 |
import gradio as gr
|
| 20 |
# Local Application Imports
|
| 21 |
+
from src.integrations import generate_text_with_claude
|
| 22 |
+
from src.config import logger
|
| 23 |
+
from src.utils import truncate_text, validate_prompt_length
|
| 24 |
|
| 25 |
|
| 26 |
# Constants
|
config.py β src/config.py
RENAMED
|
File without changes
|
src/integrations/__init__.py
ADDED
|
@@ -0,0 +1 @@
|
|
|
|
|
|
|
| 1 |
+
from .anthropic_api import generate_text_with_claude
|
anthropic_api.py β src/integrations/anthropic_api.py
RENAMED
|
@@ -27,8 +27,8 @@ from anthropic import Anthropic
|
|
| 27 |
from anthropic.types import Message, ModelParam, TextBlock
|
| 28 |
from tenacity import retry, stop_after_attempt, wait_fixed
|
| 29 |
# Local Application Imports
|
| 30 |
-
from config import logger
|
| 31 |
-
from utils import truncate_text, validate_env_var
|
| 32 |
|
| 33 |
|
| 34 |
@dataclass(frozen=True)
|
|
|
|
| 27 |
from anthropic.types import Message, ModelParam, TextBlock
|
| 28 |
from tenacity import retry, stop_after_attempt, wait_fixed
|
| 29 |
# Local Application Imports
|
| 30 |
+
from src.config import logger
|
| 31 |
+
from src.utils import truncate_text, validate_env_var
|
| 32 |
|
| 33 |
|
| 34 |
@dataclass(frozen=True)
|
src/integrations/elevenlabs_api.py
ADDED
|
@@ -0,0 +1 @@
|
|
|
|
|
|
|
| 1 |
+
# coming soon...
|
src/integrations/hume_api.py
ADDED
|
@@ -0,0 +1 @@
|
|
|
|
|
|
|
| 1 |
+
# coming soon...
|
utils.py β src/utils.py
RENAMED
|
@@ -17,7 +17,7 @@ Functions:
|
|
| 17 |
# Standard Library Imports
|
| 18 |
import os
|
| 19 |
# Local Application Imports
|
| 20 |
-
from config import logger
|
| 21 |
|
| 22 |
|
| 23 |
def truncate_text(text: str, max_length: int = 50) -> str:
|
|
|
|
| 17 |
# Standard Library Imports
|
| 18 |
import os
|
| 19 |
# Local Application Imports
|
| 20 |
+
from src.config import logger
|
| 21 |
|
| 22 |
|
| 23 |
def truncate_text(text: str, max_length: int = 50) -> str:
|