Spaces:
Sleeping
Sleeping
Upload folder using huggingface_hub
Browse files- facefusion/api/core.py +1 -1
- facefusion/api/test/test.py +1 -1
facefusion/api/core.py
CHANGED
@@ -12,7 +12,7 @@ from facefusion.utilities import normalize_output_path
|
|
12 |
app = FastAPI()
|
13 |
router = APIRouter()
|
14 |
app_dir = os.path.dirname(__file__)
|
15 |
-
work_dir = os.path.dirname(app_dir)+'/
|
16 |
print("工作目录",work_dir)
|
17 |
@app.get("/")
|
18 |
def root():
|
|
|
12 |
app = FastAPI()
|
13 |
router = APIRouter()
|
14 |
app_dir = os.path.dirname(__file__)
|
15 |
+
work_dir = os.path.dirname(app_dir)+'/'
|
16 |
print("工作目录",work_dir)
|
17 |
@app.get("/")
|
18 |
def root():
|
facefusion/api/test/test.py
CHANGED
@@ -29,7 +29,7 @@ params = {
|
|
29 |
'face_selector_mode': 'one',
|
30 |
}
|
31 |
|
32 |
-
url = '
|
33 |
response = requests.post(url, json=params)
|
34 |
|
35 |
# ステータスコードとレスポンスの内容を確認
|
|
|
29 |
'face_selector_mode': 'one',
|
30 |
}
|
31 |
|
32 |
+
url = 'https://michaelj-facefusionapi.hf.space/'
|
33 |
response = requests.post(url, json=params)
|
34 |
|
35 |
# ステータスコードとレスポンスの内容を確認
|