Spaces:
Running
Running
Update src/streamlit_app.py
Browse files- src/streamlit_app.py +2 -2
src/streamlit_app.py
CHANGED
@@ -23,7 +23,6 @@ from streamlit_webrtc import (
|
|
23 |
WebRtcMode,
|
24 |
AudioProcessorBase,
|
25 |
VideoProcessorBase,
|
26 |
-
ClientSettings
|
27 |
)
|
28 |
from aiortc import RTCIceServer, RTCConfiguration # For STUN server configuration
|
29 |
|
@@ -108,7 +107,8 @@ class GeminiInteractionLoop:
|
|
108 |
self.playback_stream = None
|
109 |
|
110 |
async def send_text_input_to_gemini(self, user_text):
|
111 |
-
if
|
|
|
112 |
logging.warning("Cannot send text. Session not active, no text, or not running.")
|
113 |
return
|
114 |
try:
|
|
|
23 |
WebRtcMode,
|
24 |
AudioProcessorBase,
|
25 |
VideoProcessorBase,
|
|
|
26 |
)
|
27 |
from aiortc import RTCIceServer, RTCConfiguration # For STUN server configuration
|
28 |
|
|
|
107 |
self.playback_stream = None
|
108 |
|
109 |
async def send_text_input_to_gemini(self, user_text):
|
110 |
+
if
|
111 |
+
not user_text or not self.gemini_session or not self.is_running:
|
112 |
logging.warning("Cannot send text. Session not active, no text, or not running.")
|
113 |
return
|
114 |
try:
|