Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -3,9 +3,12 @@ import easyocr
|
|
3 |
import gradio as gr
|
4 |
import numpy as np
|
5 |
import requests
|
|
|
|
|
|
|
6 |
|
7 |
API_URL = "https://api-inference.huggingface.co/models/dima806/facial_emotions_image_detection"
|
8 |
-
headers = {"Authorization": "Bearer
|
9 |
|
10 |
# Instance text detector
|
11 |
reader = easyocr.Reader(['en'], gpu=False)
|
|
|
3 |
import gradio as gr
|
4 |
import numpy as np
|
5 |
import requests
|
6 |
+
import os
|
7 |
+
|
8 |
+
API_KEY = os.getenv("API_KEY")
|
9 |
|
10 |
API_URL = "https://api-inference.huggingface.co/models/dima806/facial_emotions_image_detection"
|
11 |
+
headers = {"Authorization": "Bearer "+ API_KEY+""}
|
12 |
|
13 |
# Instance text detector
|
14 |
reader = easyocr.Reader(['en'], gpu=False)
|