projectlosangeles commited on
Commit
a756605
·
verified ·
1 Parent(s): d6a57ed

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -32,7 +32,7 @@ print('*' * 70)
32
  print('Loading model and tokenizer...')
33
  print('*' * 70)
34
 
35
- model_name = "asigalov61/Lyrics_Qwen2.5-1.5B-Instruct"
36
 
37
  model = AutoModelForCausalLM.from_pretrained(
38
  model_name,
@@ -281,7 +281,7 @@ def Morph_Lyrics(input_title, input_lyrics):
281
  print('=' * 70)
282
  print('Generating...')
283
 
284
- num_batches = 128
285
 
286
  generated_ids = model.generate(**model_inputs,
287
  max_new_tokens=4096,
@@ -362,7 +362,7 @@ if __name__ == "__main__":
362
  with app:
363
 
364
  gr.Markdown("<h1 style='text-align: center; margin-bottom: 1rem'>Lyrics Morpher</h1>")
365
- gr.Markdown("<h1 style='text-align: center; margin-bottom: 1rem'>Morph any lyrics into an exact variations with fine-tuned Qwen2.5 1.5B Instruct model</h1>")
366
 
367
  input_title = gr.Textbox(label="Enter song title here", value="Nothing Else Matters")
368
  input_lyrics = gr.Textbox(label="Enter song lyrics here", value="So close no matter how far\nCould not be much more from the heart\nForever trusting who we are\nAnd nothing else matters")
 
32
  print('Loading model and tokenizer...')
33
  print('*' * 70)
34
 
35
+ model_name = "asigalov61/Lyrics_Qwen2.5-0.5B-Instruct"
36
 
37
  model = AutoModelForCausalLM.from_pretrained(
38
  model_name,
 
281
  print('=' * 70)
282
  print('Generating...')
283
 
284
+ num_batches = 256
285
 
286
  generated_ids = model.generate(**model_inputs,
287
  max_new_tokens=4096,
 
362
  with app:
363
 
364
  gr.Markdown("<h1 style='text-align: center; margin-bottom: 1rem'>Lyrics Morpher</h1>")
365
+ gr.Markdown("<h1 style='text-align: center; margin-bottom: 1rem'>Morph any lyrics into an exact variations with fine-tuned Qwen2.5 0.5B Instruct model</h1>")
366
 
367
  input_title = gr.Textbox(label="Enter song title here", value="Nothing Else Matters")
368
  input_lyrics = gr.Textbox(label="Enter song lyrics here", value="So close no matter how far\nCould not be much more from the heart\nForever trusting who we are\nAnd nothing else matters")