SatyamPrakash09 commited on
Commit
e683023
·
verified ·
1 Parent(s): a49cabe

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -6
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-1.5-flash", # Using more stable model for HF
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()