Spaces:
Paused
Paused
Update app.py
Browse files
app.py
CHANGED
|
@@ -4,7 +4,7 @@ import tempfile
|
|
| 4 |
from pathlib import Path
|
| 5 |
|
| 6 |
import gradio as gr
|
| 7 |
-
from huggingface_hub import duplicate_space, upload_folder
|
| 8 |
|
| 9 |
|
| 10 |
def configure_training(this_space_id, csv_data, character, do_extract_vocals=False):
|
|
@@ -37,6 +37,7 @@ Ga-CcToGiUM,3105,3300
|
|
| 37 |
"""
|
| 38 |
|
| 39 |
if os.environ.get("HF_TOKEN", None) is not None:
|
|
|
|
| 40 |
interface = gr.Interface(
|
| 41 |
configure_training,
|
| 42 |
inputs=[
|
|
|
|
| 4 |
from pathlib import Path
|
| 5 |
|
| 6 |
import gradio as gr
|
| 7 |
+
from huggingface_hub import duplicate_space, upload_folder, login
|
| 8 |
|
| 9 |
|
| 10 |
def configure_training(this_space_id, csv_data, character, do_extract_vocals=False):
|
|
|
|
| 37 |
"""
|
| 38 |
|
| 39 |
if os.environ.get("HF_TOKEN", None) is not None:
|
| 40 |
+
login(os.environ.get("HF_TOKEN"))
|
| 41 |
interface = gr.Interface(
|
| 42 |
configure_training,
|
| 43 |
inputs=[
|