Spaces:
Runtime error
Runtime error
syurein
commited on
Commit
·
ae047d1
1
Parent(s):
e31e87c
性能向上
Browse files- LLM_package.py +2 -2
LLM_package.py
CHANGED
|
@@ -22,14 +22,14 @@ class GeminiInference:
|
|
| 22 |
client = genai.Client(api_key=self.api_key_source)
|
| 23 |
my_file = client.files.upload(file=file_path)
|
| 24 |
response = client.models.generate_content(
|
| 25 |
-
model="gemini-2.5-
|
| 26 |
contents=[my_file, prompt],
|
| 27 |
)
|
| 28 |
return response.text
|
| 29 |
def get_response_text(self,prompt):
|
| 30 |
client = genai.Client(api_key=self.api_key_source)
|
| 31 |
response = client.models.generate_content(
|
| 32 |
-
model="gemini-2.5-
|
| 33 |
contents=[prompt],
|
| 34 |
)
|
| 35 |
text = response.text
|
|
|
|
| 22 |
client = genai.Client(api_key=self.api_key_source)
|
| 23 |
my_file = client.files.upload(file=file_path)
|
| 24 |
response = client.models.generate_content(
|
| 25 |
+
model="gemini-2.5-flash",
|
| 26 |
contents=[my_file, prompt],
|
| 27 |
)
|
| 28 |
return response.text
|
| 29 |
def get_response_text(self,prompt):
|
| 30 |
client = genai.Client(api_key=self.api_key_source)
|
| 31 |
response = client.models.generate_content(
|
| 32 |
+
model="gemini-2.5-flash",
|
| 33 |
contents=[prompt],
|
| 34 |
)
|
| 35 |
text = response.text
|