Spaces:
Sleeping
Sleeping
Saif Rehman Nasir
commited on
Commit
·
076f151
1
Parent(s):
80d8e52
Change classification
Browse files
app.py
CHANGED
@@ -290,7 +290,7 @@ def create_interface():
|
|
290 |
|
291 |
def master_decision(message):
|
292 |
decision_response = ""
|
293 |
-
judge_main_message = f"Here is a query: '{message}', Determine if this query is asking about one of the topics included in the list below. If it is, please directly provide only one name of the topic; otherwise, you reply 'no'. The list of topics is: [movie,
|
294 |
m_message = [{"role": "user", "content": judge_main_message}]
|
295 |
for m in client.chat_completion(
|
296 |
m_message,
|
@@ -315,7 +315,7 @@ def master_decision(message):
|
|
315 |
return decision_response, result
|
316 |
|
317 |
# elif "music" in decision_response:
|
318 |
-
elif "
|
319 |
music_client = Client("ironserengety/MusicRetriever")
|
320 |
result = music_client.predict(message=message, api_name="/respond")
|
321 |
response = result
|
|
|
290 |
|
291 |
def master_decision(message):
|
292 |
decision_response = ""
|
293 |
+
judge_main_message = f"Here is a query: '{message}', Determine if this query is asking about one of the topics included in the list below. If it is, please directly provide only one name of the topic; otherwise, you reply 'no'. The list of topics is: [movie, sing]"
|
294 |
m_message = [{"role": "user", "content": judge_main_message}]
|
295 |
for m in client.chat_completion(
|
296 |
m_message,
|
|
|
315 |
return decision_response, result
|
316 |
|
317 |
# elif "music" in decision_response:
|
318 |
+
elif "sing" in decision_response:
|
319 |
music_client = Client("ironserengety/MusicRetriever")
|
320 |
result = music_client.predict(message=message, api_name="/respond")
|
321 |
response = result
|