Spaces:
Sleeping
Sleeping
Commit
·
6abab7a
1
Parent(s):
832c6b9
changed to google api key
Browse files
app.py
CHANGED
|
@@ -2,7 +2,7 @@ import google.generativeai as genai
|
|
| 2 |
import os
|
| 3 |
|
| 4 |
# Gemini AI ni sozlash
|
| 5 |
-
genai.configure(api_key=os.environ.get('
|
| 6 |
model = genai.GenerativeModel('gemini-2.5-flash')
|
| 7 |
|
| 8 |
def get_counter_debuts(opponent_debuts):
|
|
@@ -68,7 +68,7 @@ def main():
|
|
| 68 |
|
| 69 |
if __name__ == "__main__":
|
| 70 |
# API kalitini tekshirish
|
| 71 |
-
if not os.environ.get('
|
| 72 |
print("⚠️ GEMINI_API_KEY muhit o'zgaruvchisini o'rnating!")
|
| 73 |
print("Misol: export GEMINI_API_KEY='sizning_kalitingiz'")
|
| 74 |
else:
|
|
|
|
| 2 |
import os
|
| 3 |
|
| 4 |
# Gemini AI ni sozlash
|
| 5 |
+
genai.configure(api_key=os.environ.get('GOOGLE_API_KEY'))
|
| 6 |
model = genai.GenerativeModel('gemini-2.5-flash')
|
| 7 |
|
| 8 |
def get_counter_debuts(opponent_debuts):
|
|
|
|
| 68 |
|
| 69 |
if __name__ == "__main__":
|
| 70 |
# API kalitini tekshirish
|
| 71 |
+
if not os.environ.get('GOOGLE_API_KEY'):
|
| 72 |
print("⚠️ GEMINI_API_KEY muhit o'zgaruvchisini o'rnating!")
|
| 73 |
print("Misol: export GEMINI_API_KEY='sizning_kalitingiz'")
|
| 74 |
else:
|