Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -1,15 +1,13 @@
|
|
1 |
|
2 |
import os
|
3 |
-
import subprocess
|
4 |
-
import time
|
5 |
import gradio as gr
|
6 |
import numpy as np
|
7 |
import tensorflow as tf
|
8 |
from tensorflow.keras.preprocessing.image import load_img, img_to_array
|
9 |
-
import h5py
|
10 |
import google.generativeai as genai
|
11 |
|
12 |
-
genai.configure(api_key="
|
13 |
|
14 |
# Set up generation configuration
|
15 |
generation_config = {
|
|
|
1 |
|
2 |
import os
|
|
|
|
|
3 |
import gradio as gr
|
4 |
import numpy as np
|
5 |
import tensorflow as tf
|
6 |
from tensorflow.keras.preprocessing.image import load_img, img_to_array
|
7 |
+
import h5py
|
8 |
import google.generativeai as genai
|
9 |
|
10 |
+
genai.configure(api_key=os.getenv("GENAI_API_KEY"))
|
11 |
|
12 |
# Set up generation configuration
|
13 |
generation_config = {
|