basantyahya commited on
Commit
1beac75
·
verified ·
1 Parent(s): d9fd4f3

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +7 -1
app.py CHANGED
@@ -39,7 +39,13 @@ def google_search_query(question):
39
 
40
  response = client.models.generate_content(
41
  model=MODEL_ID,
42
- contents=question,
 
 
 
 
 
 
43
  config=GenerateContentConfig(tools=[google_search_tool]),
44
  )
45
 
 
39
 
40
  response = client.models.generate_content(
41
  model=MODEL_ID,
42
+ contents=[
43
+ {
44
+ "role": "user",
45
+ "parts": [{"text": question}]
46
+ }
47
+ ]
48
+ ,
49
  config=GenerateContentConfig(tools=[google_search_tool]),
50
  )
51