prithivMLmods commited on
Commit
ec594a9
·
verified ·
1 Parent(s): 5960f04

update home

Browse files
Files changed (1) hide show
  1. Home.tsx +3 -3
Home.tsx CHANGED
@@ -2,7 +2,7 @@
2
  * @license
3
  * SPDX-License-Identifier: Apache-2.0
4
  */
5
- /* tslint:disable */
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({apiKey});
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
+ }