dx2102 commited on
Commit
91d4acd
·
verified ·
1 Parent(s): 63e5fd9

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -17,7 +17,7 @@ print('\n\n\n')
17
  print('Loading model...')
18
  pipe = transformers.pipeline(
19
  "text-generation",
20
- model="dx2102/llama-midi",
21
  # revision="c303c108399aba837146e893375849b918f413b3",
22
  torch_dtype="bfloat16",
23
  device="cuda",
@@ -50,7 +50,7 @@ example_prefix = '''pitch duration wait velocity instrument
50
 
51
  def postprocess(txt, path):
52
  # remove prefix
53
- txt = txt.split('\n\n')[-1]
54
  # track = symusic.core.TrackSecond()
55
  tracks = {}
56
 
 
17
  print('Loading model...')
18
  pipe = transformers.pipeline(
19
  "text-generation",
20
+ model="dx2102/llama-midi-2",
21
  # revision="c303c108399aba837146e893375849b918f413b3",
22
  torch_dtype="bfloat16",
23
  device="cuda",
 
50
 
51
  def postprocess(txt, path):
52
  # remove prefix
53
+ txt = txt.split('---\n')[-1]
54
  # track = symusic.core.TrackSecond()
55
  tracks = {}
56