Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -7,7 +7,9 @@ import torch
|
|
7 |
from transformers import M2M100ForConditionalGeneration, M2M100Tokenizer, pipeline
|
8 |
import numpy as np
|
9 |
|
10 |
-
|
|
|
|
|
11 |
|
12 |
if __name__ == "__main__":
|
13 |
iface.queue(api_open=False).launch(show_api=False)
|
|
|
7 |
from transformers import M2M100ForConditionalGeneration, M2M100Tokenizer, pipeline
|
8 |
import numpy as np
|
9 |
|
10 |
+
auth_token = os.environ.get("HUGGING_FACE_HUB_TOKEN")
|
11 |
+
|
12 |
+
iface = gr.load(name="mutisya/transcribe-api", hf_token=auth_token, src="spaces")
|
13 |
|
14 |
if __name__ == "__main__":
|
15 |
iface.queue(api_open=False).launch(show_api=False)
|