mgokg commited on
Commit
a52af47
·
verified ·
1 Parent(s): 69972db

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -5,7 +5,7 @@ import numpy as np
5
  import gradio as gr
6
  # import websockets.sync.client # No longer needed with FastRTC
7
  from fastrtc import (
8
- PeerConnection,
9
  DataChannel,
10
  MediaStreamTrack,
11
  AudioFrame,
@@ -24,7 +24,7 @@ class GeminiConfig:
24
  """Configuration settings for Gemini API."""
25
 
26
  def __init__(self):
27
- self.api_key = os.environ.get("GEMINI_API_KEY") # Use a more descriptive name
28
  if not self.api_key:
29
  raise ValueError("GEMINI_API_KEY environment variable is not set.")
30
  self.host = "generativelanguage.googleapis.com"
 
5
  import gradio as gr
6
  # import websockets.sync.client # No longer needed with FastRTC
7
  from fastrtc import (
8
+ #PeerConnection,
9
  DataChannel,
10
  MediaStreamTrack,
11
  AudioFrame,
 
24
  """Configuration settings for Gemini API."""
25
 
26
  def __init__(self):
27
+ self.api_key = os.environ.get("KEY_NAME") # Use a more descriptive name
28
  if not self.api_key:
29
  raise ValueError("GEMINI_API_KEY environment variable is not set.")
30
  self.host = "generativelanguage.googleapis.com"