juancopi81 commited on
Commit
b85b5a2
1 Parent(s): 0168791

Change to newer model

Browse files
Files changed (2) hide show
  1. main.py +1 -1
  2. model.py +1 -1
main.py CHANGED
@@ -60,7 +60,7 @@ def run():
60
  with gr.Row():
61
  with gr.Column():
62
  temp = gr.Slider(
63
- minimum=0, maximum=1, step=0.05, value=0.75, label="Temperature"
64
  )
65
  genre = gr.Dropdown(
66
  choices=genres, value="POP", label="Select the genre"
 
60
  with gr.Row():
61
  with gr.Column():
62
  temp = gr.Slider(
63
+ minimum=0, maximum=1, step=0.05, value=0.85, label="Temperature"
64
  )
65
  genre = gr.Dropdown(
66
  choices=genres, value="POP", label="Select the genre"
model.py CHANGED
@@ -22,7 +22,7 @@ def get_model_and_tokenizer() -> Tuple[AutoModelForCausalLM, AutoTokenizer]:
22
  # Load the tokenizer and the model
23
  tokenizer = AutoTokenizer.from_pretrained("juancopi81/lmd_8bars_tokenizer")
24
  model = AutoModelForCausalLM.from_pretrained(
25
- "juancopi81/lmd-8bars-2048-epochs20_v3"
26
  )
27
 
28
  # Move model to device
 
22
  # Load the tokenizer and the model
23
  tokenizer = AutoTokenizer.from_pretrained("juancopi81/lmd_8bars_tokenizer")
24
  model = AutoModelForCausalLM.from_pretrained(
25
+ "juancopi81/lmd-8bars-2048-epochs40_v4"
26
  )
27
 
28
  # Move model to device