Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
|
@@ -1,10 +1,13 @@
|
|
| 1 |
from google import genai
|
| 2 |
from google.genai import types
|
| 3 |
import gradio as gr
|
|
|
|
|
|
|
|
|
|
| 4 |
|
| 5 |
MODEL_ID = "gemini-2.0-flash-thinking-exp"
|
| 6 |
from google import genai
|
| 7 |
-
client = genai.Client(api_key=
|
| 8 |
|
| 9 |
def llm_response(text):
|
| 10 |
response = client.models.generate_content(
|
|
|
|
| 1 |
from google import genai
|
| 2 |
from google.genai import types
|
| 3 |
import gradio as gr
|
| 4 |
+
import os
|
| 5 |
+
|
| 6 |
+
|
| 7 |
|
| 8 |
MODEL_ID = "gemini-2.0-flash-thinking-exp"
|
| 9 |
from google import genai
|
| 10 |
+
client = genai.Client(api_key=os.getenv('api_key'))
|
| 11 |
|
| 12 |
def llm_response(text):
|
| 13 |
response = client.models.generate_content(
|