breadlicker45 commited on
Commit
97e00ed
·
1 Parent(s): 52fedb9

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +7 -8
app.py CHANGED
@@ -3,7 +3,7 @@ import time
3
  from transformers import pipeline
4
  import torch
5
  trust_remote_code=True
6
- st.markdown('## Text-generation gpt Muse from Breadlicker45')
7
  use_auth_token=True
8
  @st.cache(allow_output_mutation=True, suppress_st_warning =True, show_spinner=False)
9
  def get_model():
@@ -28,22 +28,21 @@ with st.sidebar:
28
 
29
  no_ngram_repeat = st.slider('Max repetition limit', 1, 3, 1)
30
 
31
- st.markdown('## how to convert it into midi. go to this site https://mrcheeze.github.io/musenet-midi/ and then paste the numbers/musenet encoders you get from the ai into the big box and then click export midi')
32
 
33
 
34
  with col1:
35
  prompt= st.text_area('Your prompt here',
36
- '''2623 2619 3970 3976 2607 3973 2735 3973 2598 3985 2726 3973 2607 4009 2735 3973 2598 3973 2726 3973 2607 3973 2735 4009''')
37
 
38
  with col2:
39
  select_model = st.radio(
40
  "Select the model to use:",
41
- ('MuseWeb', 'MusePy', 'MuseNeo', 'MusePy-1-1', 'MuseCan'), index = 4)
42
 
43
- if select_model == 'MuseWeb':
44
- model = 'breadlicker45/museweb'
45
- elif select_model == 'MusePy':
46
- model = 'breadlicker45/MusePy'
47
  elif select_model == 'MuseNeo':
48
  model = 'breadlicker45/MuseNeo'
49
  elif select_model == 'MusePy-1-1':
 
3
  from transformers import pipeline
4
  import torch
5
  trust_remote_code=True
6
+ st.markdown('## story-generation from Breadlicker45')
7
  use_auth_token=True
8
  @st.cache(allow_output_mutation=True, suppress_st_warning =True, show_spinner=False)
9
  def get_model():
 
28
 
29
  no_ngram_repeat = st.slider('Max repetition limit', 1, 3, 1)
30
 
 
31
 
32
 
33
  with col1:
34
  prompt= st.text_area('Your prompt here',
35
+ '''in a world''')
36
 
37
  with col2:
38
  select_model = st.radio(
39
  "Select the model to use:",
40
+ ('StoryPy', 'null'), index = 0)
41
 
42
+ if select_model == 'StoryPy':
43
+ model = 'BreadAi/StoryPy'
44
+ elif select_model == 'null':
45
+ model = 'BreadAi/StoryPy'
46
  elif select_model == 'MuseNeo':
47
  model = 'breadlicker45/MuseNeo'
48
  elif select_model == 'MusePy-1-1':