asmaa1 commited on
Commit
87567df
1 Parent(s): 1833cc0

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -4
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="AIzaSyA3EGIk0HoEMmOx1AQTvYSPDWfBR3GO1Hk")
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 = {