Spaces:
Runtime error
Runtime error
breadlicker45
commited on
Commit
·
97e00ed
1
Parent(s):
52fedb9
Update app.py
Browse files
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('##
|
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 |
-
'''
|
37 |
|
38 |
with col2:
|
39 |
select_model = st.radio(
|
40 |
"Select the model to use:",
|
41 |
-
('
|
42 |
|
43 |
-
if select_model == '
|
44 |
-
model = '
|
45 |
-
elif select_model == '
|
46 |
-
model = '
|
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':
|