Update app.py
Browse files
app.py
CHANGED
@@ -1,5 +1,8 @@
|
|
1 |
import gradio as gr
|
2 |
import requests
|
|
|
|
|
|
|
3 |
|
4 |
API_URL = "https://api-inference.huggingface.co/models/tscholak/cxmefzzi"
|
5 |
headers = {"Authorization": f"Bearer {API_TOKEN}"}
|
|
|
1 |
import gradio as gr
|
2 |
import requests
|
3 |
+
import os
|
4 |
+
|
5 |
+
API_TOKEN = os.environ['API_TOKEN'])
|
6 |
|
7 |
API_URL = "https://api-inference.huggingface.co/models/tscholak/cxmefzzi"
|
8 |
headers = {"Authorization": f"Bearer {API_TOKEN}"}
|