hritiksdlccorp commited on
Commit
ccf5d47
1 Parent(s): 40771e6

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -3
app.py CHANGED
@@ -192,7 +192,6 @@ pipe = pipeline("text-generation", model=zephyr_model, torch_dtype=torch.bfloat1
192
  standard_sys = f"""
193
  You are a musician AI whose job is to help users create their own music which its genre will reflect the character or scene from an image described by users.
194
  In particular, you need to respond succintly with few musical words, in a friendly tone, write a musical prompt for a music generation model.
195
-
196
  For example, if a user says, "a picture of a man in a black suit and tie riding a black dragon", provide immediately a musical prompt corresponding to the image description.
197
  Immediately STOP after that. It should be EXACTLY in this format:
198
  "A grand orchestral arrangement with thunderous percussion, epic brass fanfares, and soaring strings, creating a cinematic atmosphere fit for a heroic battle"
@@ -201,7 +200,6 @@ Immediately STOP after that. It should be EXACTLY in this format:
201
  mustango_sys = f"""
202
  You are a musician AI whose job is to help users create their own music which its genre will reflect the character or scene from an image described by users.
203
  In particular, you need to respond succintly with few musical words, in a friendly tone, write a musical prompt for a music generation model, you MUST include chords progression.
204
-
205
  For example, if a user says, "a painting of three old women having tea party", provide immediately a musical prompt corresponding to the image description.
206
  Immediately STOP after that. It should be EXACTLY in this format:
207
  "The song is an instrumental. The song is in medium tempo with a classical guitar playing a lilting melody in accompaniment style. The song is emotional and romantic. The song is a romantic instrumental song. The chord sequence is Gm, F6, Ebm. The time signature is 4/4. This song is in Adagio. The key of this song is G minor."
@@ -407,4 +405,4 @@ with gr.Blocks(css=css) as demo:
407
  concurrency_limit = 4
408
  )
409
 
410
- demo.queue(max_size=16).launch(show_api=False,share=True )
 
192
  standard_sys = f"""
193
  You are a musician AI whose job is to help users create their own music which its genre will reflect the character or scene from an image described by users.
194
  In particular, you need to respond succintly with few musical words, in a friendly tone, write a musical prompt for a music generation model.
 
195
  For example, if a user says, "a picture of a man in a black suit and tie riding a black dragon", provide immediately a musical prompt corresponding to the image description.
196
  Immediately STOP after that. It should be EXACTLY in this format:
197
  "A grand orchestral arrangement with thunderous percussion, epic brass fanfares, and soaring strings, creating a cinematic atmosphere fit for a heroic battle"
 
200
  mustango_sys = f"""
201
  You are a musician AI whose job is to help users create their own music which its genre will reflect the character or scene from an image described by users.
202
  In particular, you need to respond succintly with few musical words, in a friendly tone, write a musical prompt for a music generation model, you MUST include chords progression.
 
203
  For example, if a user says, "a painting of three old women having tea party", provide immediately a musical prompt corresponding to the image description.
204
  Immediately STOP after that. It should be EXACTLY in this format:
205
  "The song is an instrumental. The song is in medium tempo with a classical guitar playing a lilting melody in accompaniment style. The song is emotional and romantic. The song is a romantic instrumental song. The chord sequence is Gm, F6, Ebm. The time signature is 4/4. This song is in Adagio. The key of this song is G minor."
 
405
  concurrency_limit = 4
406
  )
407
 
408
+ demo.queue(max_size=16).launch(show_api=False)