cocktailpeanut
commited on
Commit
•
80d34f7
1
Parent(s):
9d2de5c
update
Browse files
app.py
CHANGED
@@ -13,8 +13,10 @@ import shlex
|
|
13 |
import shutil
|
14 |
|
15 |
HF_API_KEY = os.environ["HF_TOKEN"]
|
|
|
16 |
|
17 |
-
|
|
|
18 |
|
19 |
allowed_medias = [
|
20 |
".png",
|
|
|
13 |
import shutil
|
14 |
|
15 |
HF_API_KEY = os.environ["HF_TOKEN"]
|
16 |
+
BASE_URL = os.environ.get("BASE_URL", "https://api-inference.huggingface.co/v1/")
|
17 |
|
18 |
+
|
19 |
+
client = OpenAI(base_url=BASE_URL, api_key=HF_API_KEY)
|
20 |
|
21 |
allowed_medias = [
|
22 |
".png",
|