pointing the hf app to hype_pack/streamlit_app.py instead of app.py
Browse files- README.md +1 -1
- hype_pack/utils/nodes.py +2 -1
README.md
CHANGED
|
@@ -5,7 +5,7 @@ colorFrom: blue
|
|
| 5 |
colorTo: purple
|
| 6 |
sdk: streamlit
|
| 7 |
sdk_version: 1.39.0
|
| 8 |
-
app_file:
|
| 9 |
pinned: false
|
| 10 |
---
|
| 11 |
|
|
|
|
| 5 |
colorTo: purple
|
| 6 |
sdk: streamlit
|
| 7 |
sdk_version: 1.39.0
|
| 8 |
+
app_file: hype_pack/streamlit_app.py
|
| 9 |
pinned: false
|
| 10 |
---
|
| 11 |
|
hype_pack/utils/nodes.py
CHANGED
|
@@ -216,7 +216,7 @@ async def text_to_speech_node(interview_state: InterviewState, selected_speaker:
|
|
| 216 |
|
| 217 |
text_content = str(interview_state.transcript.content)
|
| 218 |
print(f"Converting text: {text_content[:100]}...")
|
| 219 |
-
print(f"Using voice_id: {voice_id}")
|
| 220 |
print(f"LMNT API Key present: {'Yes' if os.getenv('LMNT_API_KEY') else 'No'}")
|
| 221 |
|
| 222 |
async with speech as s:
|
|
@@ -230,6 +230,7 @@ async def text_to_speech_node(interview_state: InterviewState, selected_speaker:
|
|
| 230 |
)
|
| 231 |
print(f"API Response received. Size: {len(result)} bytes")
|
| 232 |
print(f"Response type: {type(result)}")
|
|
|
|
| 233 |
|
| 234 |
if not result or len(result) < 100: # Assuming valid MP3 files are larger than 100 bytes
|
| 235 |
raise ValueError(f"Invalid audio response size: {len(result)} bytes")
|
|
|
|
| 216 |
|
| 217 |
text_content = str(interview_state.transcript.content)
|
| 218 |
print(f"Converting text: {text_content[:100]}...")
|
| 219 |
+
print(f"Using voice_id: {voice_id[:10]}")
|
| 220 |
print(f"LMNT API Key present: {'Yes' if os.getenv('LMNT_API_KEY') else 'No'}")
|
| 221 |
|
| 222 |
async with speech as s:
|
|
|
|
| 230 |
)
|
| 231 |
print(f"API Response received. Size: {len(result)} bytes")
|
| 232 |
print(f"Response type: {type(result)}")
|
| 233 |
+
print(f"Result: {result}")
|
| 234 |
|
| 235 |
if not result or len(result) < 100: # Assuming valid MP3 files are larger than 100 bytes
|
| 236 |
raise ValueError(f"Invalid audio response size: {len(result)} bytes")
|