fffiloni commited on
Commit
0f45386
1 Parent(s): 6db627d

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +12 -1
app.py CHANGED
@@ -14,8 +14,19 @@ def infer(audio_file):
14
  )
15
  print(cap_result)
16
 
 
 
 
 
 
 
 
 
 
 
 
17
  result = client.predict(
18
- cap_result, # str in 'Message' Textbox component
19
  api_name="/chat"
20
  )
21
 
 
14
  )
15
  print(cap_result)
16
 
17
+ llama_q = f"""
18
+
19
+ I'll give you music description, then i want you to provide an image description that would fit well with the music.
20
+ Answer with only one image description. Never do lists.
21
+
22
+ Here's the music description :
23
+
24
+ {cap_result}
25
+
26
+ """
27
+
28
  result = client.predict(
29
+ llama_q, # str in 'Message' Textbox component
30
  api_name="/chat"
31
  )
32