Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -36,22 +36,22 @@ def infer(audio_file):
|
|
36 |
)
|
37 |
print(cap_result)
|
38 |
|
39 |
-
summarize_q = f"""
|
40 |
|
41 |
-
I'll give you a list of music descriptions. Create a summary reflecting the musical ambiance.
|
42 |
-
Do not processs each segment, but provide a summary for the whole instead.
|
43 |
|
44 |
-
Here's the list:
|
45 |
|
46 |
-
{cap_result}
|
47 |
-
"""
|
48 |
|
49 |
-
summary_result = client.predict(
|
50 |
-
|
51 |
-
|
52 |
-
)
|
53 |
|
54 |
-
print(f"SUMMARY: {summary_result}")
|
55 |
|
56 |
llama_q = f"""
|
57 |
|
@@ -60,7 +60,7 @@ def infer(audio_file):
|
|
60 |
|
61 |
Here's the music description :
|
62 |
|
63 |
-
{
|
64 |
|
65 |
"""
|
66 |
|
|
|
36 |
)
|
37 |
print(cap_result)
|
38 |
|
39 |
+
#summarize_q = f"""
|
40 |
|
41 |
+
#I'll give you a list of music descriptions. Create a summary reflecting the musical ambiance.
|
42 |
+
#Do not processs each segment, but provide a summary for the whole instead.
|
43 |
|
44 |
+
#Here's the list:
|
45 |
|
46 |
+
#{cap_result}
|
47 |
+
#"""
|
48 |
|
49 |
+
#summary_result = client.predict(
|
50 |
+
# summarize_q, # str in 'Message' Textbox component
|
51 |
+
# api_name="/chat_1"
|
52 |
+
#)
|
53 |
|
54 |
+
#print(f"SUMMARY: {summary_result}")
|
55 |
|
56 |
llama_q = f"""
|
57 |
|
|
|
60 |
|
61 |
Here's the music description :
|
62 |
|
63 |
+
{cap_result}
|
64 |
|
65 |
"""
|
66 |
|