return resp.text
Browse files
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):
|