gmshroff commited on
Commit
b34524e
1 Parent(s): 3866637

return resp.text

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -22,7 +22,7 @@ genai.configure(api_key=GOOGLE_API_KEY)
22
  def call_gemini(text):
23
  model = genai.GenerativeModel('gemini-pro')
24
  response = model.generate_content(text)
25
- return response
26
 
27
  @anvil.server.callable
28
  def encode_anvil(text):
 
22
  def call_gemini(text):
23
  model = genai.GenerativeModel('gemini-pro')
24
  response = model.generate_content(text)
25
+ return response.text
26
 
27
  @anvil.server.callable
28
  def encode_anvil(text):