Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -32,7 +32,7 @@ def initialize_llm():
|
|
| 32 |
os.environ["GOOGLE_API_KEY"] = api_key
|
| 33 |
|
| 34 |
llm = ChatGoogleGenerativeAI(
|
| 35 |
-
model="gemini-
|
| 36 |
temperature=0,
|
| 37 |
max_tokens=2048
|
| 38 |
)
|
|
@@ -242,8 +242,4 @@ if __name__ == "__main__":
|
|
| 242 |
def error_interface(message, history):
|
| 243 |
return f"Application failed to initialize: {str(e)}"
|
| 244 |
|
| 245 |
-
gr.ChatInterface(
|
| 246 |
-
error_interface,
|
| 247 |
-
title="❌ Configuration Error",
|
| 248 |
-
description="Please check the application logs and configuration."
|
| 249 |
-
).launch()
|
|
|
|
| 32 |
os.environ["GOOGLE_API_KEY"] = api_key
|
| 33 |
|
| 34 |
llm = ChatGoogleGenerativeAI(
|
| 35 |
+
model="gemini-2.5-flash",
|
| 36 |
temperature=0,
|
| 37 |
max_tokens=2048
|
| 38 |
)
|
|
|
|
| 242 |
def error_interface(message, history):
|
| 243 |
return f"Application failed to initialize: {str(e)}"
|
| 244 |
|
| 245 |
+
gr.ChatInterface().launch()
|
|
|
|
|
|
|
|
|
|
|
|