Yaron Koresh commited on
Commit
860412d
·
verified ·
1 Parent(s): 147f1f5

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +9 -9
app.py CHANGED
@@ -47,7 +47,6 @@ from datetime import datetime
47
  model = T5ForConditionalGeneration.from_pretrained("t5-large")
48
  tokenizer = T5Tokenizer.from_pretrained("t5-large")
49
 
50
-
51
  def log(msg):
52
  print(f'{datetime.now().time()} {msg}')
53
 
@@ -1348,17 +1347,18 @@ if __name__ == "__main__":
1348
  container=False,
1349
  max_lines=1
1350
  )
1351
- lyrics = gr.Textbox(
1352
- placeholder="Lyrics",
1353
- value="",
1354
- container=False,
1355
- max_lines=200
1356
- )
1357
 
1358
  with gr.Column():
1359
  cover = gr.Image(interactive=False,container=False,elem_classes="image-container", label="Result", show_label=True, type='filepath', show_share_button=False)
1360
-
1361
- run = gr.Button("Generate",elem_classes="btn")
 
 
 
 
 
 
1362
 
1363
  run.click(
1364
  fn=handle_generation,
 
47
  model = T5ForConditionalGeneration.from_pretrained("t5-large")
48
  tokenizer = T5Tokenizer.from_pretrained("t5-large")
49
 
 
50
  def log(msg):
51
  print(f'{datetime.now().time()} {msg}')
52
 
 
1347
  container=False,
1348
  max_lines=1
1349
  )
1350
+ run = gr.Button("Generate",elem_classes="btn")
 
 
 
 
 
1351
 
1352
  with gr.Column():
1353
  cover = gr.Image(interactive=False,container=False,elem_classes="image-container", label="Result", show_label=True, type='filepath', show_share_button=False)
1354
+
1355
+ with gr.Row():
1356
+ lyrics = gr.Textbox(
1357
+ placeholder="Lyrics",
1358
+ value="",
1359
+ container=False,
1360
+ max_lines=10000
1361
+ )
1362
 
1363
  run.click(
1364
  fn=handle_generation,