Lara commited on
Commit
277d680
·
1 Parent(s): 9c03250
Files changed (1) hide show
  1. app.py +15 -14
app.py CHANGED
@@ -1,34 +1,35 @@
1
  import gradio as gr
2
 
 
 
 
 
 
 
3
 
4
  def submit():
5
  print("hallo")
6
 
7
- with gr.Blocks() as demo:
8
  with gr.Column():
9
- gr.HTML(value="<div style = 'display: flex; justify-content: space-between'><img src = 'logo.png' alt='hfu_logo' width='200px'/><img src = 'https://upload.wikimedia.org/wikipedia/de/5/57/Hochschule_Furtwangen_HFU_logo.svg' alt='hfu_logo' width='200px'/></div>")
10
- gr.Markdown(
11
- """
12
- # GenreMorph
13
- [GenreMorph](https://github.com/larimei/Music-KI) is a project for the course AI in Music
14
- from the Hochschule Furtwangen.
15
- This app changes the style and genre of the uploaded audio file and
16
- generates a new one.
17
- """
18
- )
19
  with gr.Row():
20
- melody = gr.Audio(label="Upload your audio", interactive=True, sources=["upload"])
21
  otherMelody = gr.Dropdown(["Game of Thrones", "bLa"], label="Or choose one of our audios")
22
  genre = gr.Dropdown(["Metal", "Hardstyle", "Klassik"], label="Select Genre")
23
  btn = gr.Button(value="Generate")
24
  btn.click(submit)
25
- output = gr.Video(label="Generated Music", interactive=False)
26
  audio_output = gr.Audio(label="Generated Music (wav)", type='filepath', interactive=False)
27
  gr.Markdown(
28
  """
 
 
 
 
29
  Created by Jonathan Rissler, Lennard Hurst and Lara Meister
30
  """
31
  )
32
 
33
 
34
- demo.launch(share=False)
 
1
  import gradio as gr
2
 
3
+ css = """
4
+ .container {
5
+ height: 150px;
6
+ }
7
+ """
8
+
9
 
10
  def submit():
11
  print("hallo")
12
 
13
+ with gr.Blocks(css=css) as demo:
14
  with gr.Column():
15
+ gr.HTML(value="<div style = 'display: flex; justify-content: space-between; align-items: center'><img src = 'file/logo.png' alt='logo' width='150px'/><div style='font-size: 32px'>GenreMorpher</div><img src = 'https://upload.wikimedia.org/wikipedia/de/5/57/Hochschule_Furtwangen_HFU_logo.svg' alt='hfu_logo' width='300px'/></div>")
 
 
 
 
 
 
 
 
 
16
  with gr.Row():
17
+ melody = gr.Audio(label="Upload your audio", interactive=True, sources=["upload"], elem_classes=["container"])
18
  otherMelody = gr.Dropdown(["Game of Thrones", "bLa"], label="Or choose one of our audios")
19
  genre = gr.Dropdown(["Metal", "Hardstyle", "Klassik"], label="Select Genre")
20
  btn = gr.Button(value="Generate")
21
  btn.click(submit)
22
+ output = gr.Video(label="Generated Music", interactive=False, elem_classes=["container"])
23
  audio_output = gr.Audio(label="Generated Music (wav)", type='filepath', interactive=False)
24
  gr.Markdown(
25
  """
26
+ [GenreMorpher](https://github.com/larimei/Music-KI) is a project for the course AI in Music
27
+ from the Hochschule Furtwangen.
28
+ This app changes the style and genre of the uploaded audio file and
29
+ generates a new one.
30
  Created by Jonathan Rissler, Lennard Hurst and Lara Meister
31
  """
32
  )
33
 
34
 
35
+ demo.launch(share=False, allowed_paths=["logo.png"])