Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -68,7 +68,7 @@ __version__ = "0.0.3"
|
|
68 |
class GeminiConfig:
|
69 |
"""Configuration settings for Gemini API."""
|
70 |
def __init__(self):
|
71 |
-
self.api_key = os.
|
72 |
self.host = "generativelanguage.googleapis.com"
|
73 |
self.model = "models/gemini-2.0-flash-exp"
|
74 |
self.ws_url = f"wss://{self.host}/ws/google.ai.generativelanguage.v1alpha.GenerativeService.BidiGenerateContent?key={self.api_key}"
|
|
|
68 |
class GeminiConfig:
|
69 |
"""Configuration settings for Gemini API."""
|
70 |
def __init__(self):
|
71 |
+
self.api_key = os.environ.get(KEY_NAME)
|
72 |
self.host = "generativelanguage.googleapis.com"
|
73 |
self.model = "models/gemini-2.0-flash-exp"
|
74 |
self.ws_url = f"wss://{self.host}/ws/google.ai.generativelanguage.v1alpha.GenerativeService.BidiGenerateContent?key={self.api_key}"
|