Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -1,8 +1,9 @@
|
|
1 |
import requests
|
2 |
import gradio as gr
|
|
|
3 |
|
4 |
# Pexels API ํค๋ฅผ ์ฌ๊ธฐ์ ์
๋ ฅํ์ธ์
|
5 |
-
API_KEY = '
|
6 |
API_URL = 'https://api.pexels.com/v1/search'
|
7 |
|
8 |
def search_images(keyword):
|
|
|
1 |
import requests
|
2 |
import gradio as gr
|
3 |
+
import os
|
4 |
|
5 |
# Pexels API ํค๋ฅผ ์ฌ๊ธฐ์ ์
๋ ฅํ์ธ์
|
6 |
+
API_KEY = os.getenv('API_KEY')
|
7 |
API_URL = 'https://api.pexels.com/v1/search'
|
8 |
|
9 |
def search_images(keyword):
|