Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -6,8 +6,8 @@ import pathlib
|
|
6 |
import textwrap
|
7 |
import os
|
8 |
|
9 |
-
|
10 |
-
secret_key =
|
11 |
genai.configure(api_key = secret_key)
|
12 |
model = genai.GenerativeModel('gemini-pro-vision')
|
13 |
def generate_prescription(image):
|
|
|
6 |
import textwrap
|
7 |
import os
|
8 |
|
9 |
+
secret_key =os.getenv("API_KEY")
|
10 |
+
# secret_key = userdata.get('API_KEY')
|
11 |
genai.configure(api_key = secret_key)
|
12 |
model = genai.GenerativeModel('gemini-pro-vision')
|
13 |
def generate_prescription(image):
|