Update app.py
Browse files
app.py
CHANGED
@@ -2,4 +2,15 @@ import gradio as gr
|
|
2 |
|
3 |
examples = [["Hello, my name is Josh and I live in Berlin."], ["There once was a pineapple"]]
|
4 |
|
5 |
-
gr.Interface.load("huggingface/elastic/distilbert-base-uncased-finetuned-conll03-english", examples=examples).launch();
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2 |
|
3 |
examples = [["Hello, my name is Josh and I live in Berlin."], ["There once was a pineapple"]]
|
4 |
|
5 |
+
#gr.Interface.load("huggingface/elastic/distilbert-base-uncased-finetuned-conll03-english", examples=examples).launch();
|
6 |
+
|
7 |
+
gr.Interface(
|
8 |
+
|
9 |
+
[
|
10 |
+
gr.inputs.Dropdown(["C", "C#", "D", "D#", "E", "F", "F#", "G", "G#", "A", "A#", "B"], type="index"),
|
11 |
+
gr.inputs.Slider(4, 6, step=1),
|
12 |
+
gr.inputs.Textbox(type="number", default=1, label="Duration in seconds"),
|
13 |
+
],
|
14 |
+
"audio",
|
15 |
+
title="Generate a Musical Tone!"
|
16 |
+
).launch()
|