Update app.py
Browse files
app.py
CHANGED
@@ -1,4 +1,8 @@
|
|
|
|
1 |
import gradio as gr
|
2 |
|
3 |
-
#
|
4 |
-
|
|
|
|
|
|
|
|
1 |
+
import os
|
2 |
import gradio as gr
|
3 |
|
4 |
+
# 環境変数からAPIキーを取得
|
5 |
+
api_token = os.getenv("HF_API_KEY")
|
6 |
+
|
7 |
+
# Hugging FaceモデルをAPIトークンで読み込む
|
8 |
+
gr.load("models/often/removebg", api_key=api_token).launch()
|