dream_II / app.py
lorenzoscottb's picture
Update app.py
91beaca
raw
history blame
566 Bytes
import os
import numpy as np
import gradio as gr
from gradio.mix import Series
path_to_L_model = str(os.environ['path_to_L_model'])
read_token = str(os.environ['read_token'])
description = "Talk to Breud!"
title = "Breud (BERT + Freud)"
wisper = gr.Interface.load("models/openai/whisper-base")
interface_model_L = gr.Interface.load(
name=path_to_L_model,
api_key=read_token,
)
Series(
wisper,
interface_model_L,
description = description,
title = title,
inputs = gr.Audio(source="microphone"),
).launch()