Moda commited on
Commit
28e25a4
·
1 Parent(s): 81917a3
Files changed (2) hide show
  1. app.py +3 -1
  2. requirements.txt +2 -1
app.py CHANGED
@@ -3,6 +3,7 @@ import gradio as gr
3
  import requests
4
  import inspect
5
  import pandas as pd
 
6
 
7
  # (Keep Constants as is)
8
  # --- Constants ---
@@ -15,7 +16,8 @@ class BasicAgent:
15
  print("BasicAgent initialized.")
16
  def __call__(self, question: str) -> str:
17
  print(f"Agent received question (first 50 chars): {question[:50]}...")
18
- fixed_answer = "This is a default answer."
 
19
  print(f"Agent returning fixed answer: {fixed_answer}")
20
  return fixed_answer
21
 
 
3
  import requests
4
  import inspect
5
  import pandas as pd
6
+ from langchain_google_genai import ChatGoogleGenerativeAI
7
 
8
  # (Keep Constants as is)
9
  # --- Constants ---
 
16
  print("BasicAgent initialized.")
17
  def __call__(self, question: str) -> str:
18
  print(f"Agent received question (first 50 chars): {question[:50]}...")
19
+ llm = ChatGoogleGenerativeAI(model="gemini-2.0-flash", temperature=1)
20
+ fixed_answer = llm.invoke(question).content
21
  print(f"Agent returning fixed answer: {fixed_answer}")
22
  return fixed_answer
23
 
requirements.txt CHANGED
@@ -1,2 +1,3 @@
1
  gradio
2
- requests
 
 
1
  gradio
2
+ requests
3
+ langchain_google_genai