Commit
•
31156f1
1
Parent(s):
0cb97b2
Update app.py
Browse files
app.py
CHANGED
@@ -8,12 +8,10 @@ import io
|
|
8 |
from IPython.display import Image, display, HTML
|
9 |
from PIL import Image
|
10 |
import base64
|
11 |
-
from dotenv import load_dotenv, find_dotenv
|
12 |
|
13 |
description = "Image Recognition & Generation"
|
14 |
title = "This app allows users to upload an image, generation a caption of the image, then use that caption to generate a new image. Isn't it fun!"
|
15 |
|
16 |
-
_ = load_dotenv(find_dotenv()) # read local .env file
|
17 |
hf_api_key = os.environ['HF_API_KEY']
|
18 |
|
19 |
#Here we are going to call multiple endpoints!
|
|
|
8 |
from IPython.display import Image, display, HTML
|
9 |
from PIL import Image
|
10 |
import base64
|
|
|
11 |
|
12 |
description = "Image Recognition & Generation"
|
13 |
title = "This app allows users to upload an image, generation a caption of the image, then use that caption to generate a new image. Isn't it fun!"
|
14 |
|
|
|
15 |
hf_api_key = os.environ['HF_API_KEY']
|
16 |
|
17 |
#Here we are going to call multiple endpoints!
|