mutisya's picture
Update app.py
aba5e88 verified
raw
history blame
448 Bytes
import gradio as gr
from transformers import pipeline
import time
import os
import torch
from transformers import M2M100ForConditionalGeneration, M2M100Tokenizer, pipeline
import numpy as np
auth_token = os.environ.get("key")
os.environ["HUGGING_FACE_HUB_TOKEN"] = auth_token
iface = gr.load(name="mutisya/transcribe-api-feb24", hf_token=hf_token, src="spaces")
if __name__ == "__main__":
iface.queue(api_open=False).launch(show_api=False)