Spaces:
Build error
Build error
Update app.py
Browse files
app.py
CHANGED
|
@@ -21,7 +21,7 @@ def invoke(question):
|
|
| 21 |
try:
|
| 22 |
response = client.models.generate_content(
|
| 23 |
model="gemini-2.0-flash",
|
| 24 |
-
contents=[
|
| 25 |
config=genai.types.GenerateContentConfig(
|
| 26 |
max_output_tokens=3000,
|
| 27 |
temperature=0.3,)
|
|
|
|
| 21 |
try:
|
| 22 |
response = client.models.generate_content(
|
| 23 |
model="gemini-2.0-flash",
|
| 24 |
+
contents=[sample_doc, "請摘要說明"],
|
| 25 |
config=genai.types.GenerateContentConfig(
|
| 26 |
max_output_tokens=3000,
|
| 27 |
temperature=0.3,)
|