Spaces:
Running
Running
Update app.py
Browse files
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("
|
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"
|