update
Browse filesFiles changed (3)
- README.md+1-1
- app.py+2-4
- app_gemini_voice.py+2-18
3 unmodified lines4567789103 unmodified linescolorFrom: indigocolorTo: indigosdk: gradiosdk_version: 5.8.0sdk_version: 5.9.0app_file: app.pypinned: falsedisable_embedding: true12345663 unmodified lines70717272737475767475from utils import get_app
# Import all demosfrom app_cohere import demo as demo_coherefrom app_meta import demo as demo_meta63 unmodified linesif __name__ == "__main__": demo.queue( api_open=False, max_size=20 ).launch( show_api=False, share=True, server_name="0.0.0.0" show_api=False )172 unmodified lines1731741751761771781791801811821831841851861761771781791911801811821836 unmodified lines190191192204205206207208209193194195196172 unmodified lines </div> """) rtc_config = { "iceServers": [ {"urls": ["stun:stun.l.google.com:19302"]} ] } try: rtc_config = get_twilio_turn_credentials() except Exception as e: print(f"Using fallback STUN configuration: {e}") webrtc = WebRTC( label="Conversation", modality="audio", mode="send-receive", rtc_configuration=rtc_config rtc_configuration=get_twilio_turn_credentials() ) webrtc.stream(6 unmodified lines return demo
def launch(self): self.demo.launch( server_name="0.0.0.0", server_port=int(os.environ.get("PORT", 7860)), share=False )
self.demo.launch()# Create and expose the demo instancedef demo(): chat = GeminiVoiceChat()README.md+1-1
app.py+2-4
app_gemini_voice.py+2-18