fffiloni commited on
Commit
ab9867e
1 Parent(s): 58d8890

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -5
app.py CHANGED
@@ -62,20 +62,18 @@ def infer(audio_file):
62
  #print(f"SUMMARY: {summary_result}")
63
 
64
  llama_q = """
65
- [INST] <<SYS>>\n
66
-
67
  I'll give you music description, then i want you to provide an illustrative image description that would fit well with the music.
68
 
69
  Answer with only one image description. Never do lists. Do not processs each segment, but provide a summary for the whole instead.
70
 
71
  Here's the music description :
72
 
73
- \n<</SYS>>\n\n{} [/INST]
74
 
75
  """
76
- prompt = llama_q.format(cap_result)
77
  result = client.predict(
78
- prompt, # str in 'Message' Textbox component
79
  api_name="/predict"
80
  )
81
 
 
62
  #print(f"SUMMARY: {summary_result}")
63
 
64
  llama_q = """
 
 
65
  I'll give you music description, then i want you to provide an illustrative image description that would fit well with the music.
66
 
67
  Answer with only one image description. Never do lists. Do not processs each segment, but provide a summary for the whole instead.
68
 
69
  Here's the music description :
70
 
71
+ {cap_result}
72
 
73
  """
74
+
75
  result = client.predict(
76
+ llama_q, # str in 'Message' Textbox component
77
  api_name="/predict"
78
  )
79