Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -3,9 +3,10 @@ from PIL import Image, ImageDraw, ImageFont
|
|
3 |
import base64
|
4 |
import requests
|
5 |
import gradio as gr
|
|
|
6 |
|
7 |
# OpenAI API Key
|
8 |
-
api_key = "
|
9 |
|
10 |
# Function to encode the image
|
11 |
def encode_image(image_path):
|
|
|
3 |
import base64
|
4 |
import requests
|
5 |
import gradio as gr
|
6 |
+
import os
|
7 |
|
8 |
# OpenAI API Key
|
9 |
+
api_key = os.environ.get("api_key")
|
10 |
|
11 |
# Function to encode the image
|
12 |
def encode_image(image_path):
|