Abdel commited on
Commit
baee320
1 Parent(s): 57aaf88

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +12 -1
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()