llamasrock commited on
Commit
714ca95
·
verified ·
1 Parent(s): 65bff86

Update app.py

Browse files

System prompt corrected

Files changed (1) hide show
  1. app.py +2 -1
app.py CHANGED
@@ -44,7 +44,8 @@ class BasicAgent:
44
  await asyncio.sleep(1)
45
  response = self.client.models.generate_content(
46
  model='gemini-2.0-flash',
47
- contents=f'Answer the following question in the format as requested.{question}',
 
48
  config=types.GenerateContentConfig(
49
  tools=[types.Tool(
50
  google_search=types.GoogleSearch()
 
44
  await asyncio.sleep(1)
45
  response = self.client.models.generate_content(
46
  model='gemini-2.0-flash',
47
+ contents=f'''Answer the following question in the format as requested. If the format not specified, then provide a single word/number/name.
48
+ Do not include how you answered the question. {question}''',
49
  config=types.GenerateContentConfig(
50
  tools=[types.Tool(
51
  google_search=types.GoogleSearch()