Spaces:
Runtime error
Runtime error
Commit
Β·
72fadc4
1
Parent(s):
c4712b4
Create app.py
Browse files
app.py
ADDED
@@ -0,0 +1,22 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
import gradio as gr
|
2 |
+
from gradio.mix import Series
|
3 |
+
|
4 |
+
path_to_L_model = str(os.environ['path_to_L_model'])
|
5 |
+
read_token = str(os.environ['read_token'])
|
6 |
+
|
7 |
+
description = "Generate your own D&D story!"
|
8 |
+
title = "French Story Generator using Opus MT and GPT-2"
|
9 |
+
|
10 |
+
wisper = gr.Interface.load("models/openai/whisper-base")
|
11 |
+
|
12 |
+
interface_model_L = gr.Interface.load(
|
13 |
+
name=path_to_L_model,
|
14 |
+
api_key=read_token,
|
15 |
+
)
|
16 |
+
|
17 |
+
Series(
|
18 |
+
wisper,
|
19 |
+
interface_model_L
|
20 |
+
description = description,
|
21 |
+
title = title,
|
22 |
+
).launch()
|