Spaces:
Sleeping
Sleeping
Update main.py
Browse files
main.py
CHANGED
|
@@ -93,7 +93,7 @@ def handle_message(event):
|
|
| 93 |
# Convert the prompt to a Text Part
|
| 94 |
prompt_part = genai.types.Part.from_text(text=prompt)
|
| 95 |
# Combine the PDF contents and the new prompt into a single list for the 'contents' argument
|
| 96 |
-
combined_contents =
|
| 97 |
# 使用 client.models.generate_content
|
| 98 |
completion = client.models.generate_content(
|
| 99 |
model="gemini-2.5-flash",
|
|
|
|
| 93 |
# Convert the prompt to a Text Part
|
| 94 |
prompt_part = genai.types.Part.from_text(text=prompt)
|
| 95 |
# Combine the PDF contents and the new prompt into a single list for the 'contents' argument
|
| 96 |
+
combined_contents = prompt_part + files_content
|
| 97 |
# 使用 client.models.generate_content
|
| 98 |
completion = client.models.generate_content(
|
| 99 |
model="gemini-2.5-flash",
|