Spaces:
Paused
Paused
Update app.py
Browse files
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 |
-
|
| 74 |
|
| 75 |
"""
|
| 76 |
-
|
| 77 |
result = client.predict(
|
| 78 |
-
|
| 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 |
|