File size: 532 Bytes
72fadc4
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
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 = "Generate your own D&D story!"
title       = "French Story Generator using Opus MT and GPT-2"

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,
).launch()