fffiloni commited on
Commit
5b23c3b
1 Parent(s): 849fe7e

changed llama endpoint

Browse files
Files changed (1) hide show
  1. app.py +3 -5
app.py CHANGED
@@ -61,7 +61,7 @@ def infer(audio_file):
61
 
62
  #print(f"SUMMARY: {summary_result}")
63
 
64
- llama_q = f"""
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.
@@ -71,13 +71,11 @@ def infer(audio_file):
71
  Here's the music description :
72
 
73
  \n<</SYS>>\n\n{} [/INST]
74
-
75
- {cap_result}
76
 
77
  """
78
-
79
  result = client.predict(
80
- llama_q, # str in 'Message' Textbox component
81
  api_name="/predict"
82
  )
83
 
 
61
 
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.
 
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