Spaces:
Running
Running
update home
Browse files
Home.tsx
CHANGED
@@ -2,7 +2,7 @@
|
|
2 |
* @license
|
3 |
* SPDX-License-Identifier: Apache-2.0
|
4 |
*/
|
5 |
-
/*
|
6 |
import {Content, GoogleGenAI, Modality} from '@google/genai';
|
7 |
import {
|
8 |
Eraser,
|
@@ -313,7 +313,7 @@ export default function Home() {
|
|
313 |
const submitAction = async () => {
|
314 |
setIsLoading(true);
|
315 |
try {
|
316 |
-
const ai = new GoogleGenAI(
|
317 |
|
318 |
if (mode === 'imageGen') {
|
319 |
const response = await ai.models.generateImages({
|
@@ -802,4 +802,4 @@ export default function Home() {
|
|
802 |
</div>
|
803 |
</>
|
804 |
);
|
805 |
-
}
|
|
|
2 |
* @license
|
3 |
* SPDX-License-Identifier: Apache-2.0
|
4 |
*/
|
5 |
+
/* tlint:disable */
|
6 |
import {Content, GoogleGenAI, Modality} from '@google/genai';
|
7 |
import {
|
8 |
Eraser,
|
|
|
313 |
const submitAction = async () => {
|
314 |
setIsLoading(true);
|
315 |
try {
|
316 |
+
const ai = new GoogleGenAI(apiKey);
|
317 |
|
318 |
if (mode === 'imageGen') {
|
319 |
const response = await ai.models.generateImages({
|
|
|
802 |
</div>
|
803 |
</>
|
804 |
);
|
805 |
+
}
|