Spaces:
Sleeping
Sleeping
update api
Browse files
api.py
CHANGED
|
@@ -148,7 +148,7 @@ async def tts_api(req: TTSRequest):
|
|
| 148 |
space_id = os.environ.get("SPACE_ID")
|
| 149 |
if space_id:
|
| 150 |
username, space_name = space_id.split("/")
|
| 151 |
-
space_url = f"https://{username}-rvc-
|
| 152 |
public_url = f"{space_url}/file-tmp?path={output_wav}"
|
| 153 |
else:
|
| 154 |
public_url = f"/file-tmp?path={output_wav}"
|
|
|
|
| 148 |
space_id = os.environ.get("SPACE_ID")
|
| 149 |
if space_id:
|
| 150 |
username, space_name = space_id.split("/")
|
| 151 |
+
space_url = f"https://{username}-rvc-api.hf.space"
|
| 152 |
public_url = f"{space_url}/file-tmp?path={output_wav}"
|
| 153 |
else:
|
| 154 |
public_url = f"/file-tmp?path={output_wav}"
|