Spaces:
Sleeping
Sleeping
Update main.py
Browse files
main.py
CHANGED
@@ -49,7 +49,7 @@ def json_from_text(text):
|
|
49 |
def generate_topics(user_input, num_topics, previous_queries):
|
50 |
previous_context = " -> ".join(previous_queries)
|
51 |
prompt = f"""create a list of {num_topics} subtopics to follow for conducting {user_input} in the context of {previous_context}, RETURN VALID PYTHON LIST"""
|
52 |
-
response_topics = together_response(prompt, model="meta-llama/Llama-3-8b-chat-hf", SysPrompt=
|
53 |
subtopics = json_from_text(response_topics)
|
54 |
return subtopics
|
55 |
|
|
|
49 |
def generate_topics(user_input, num_topics, previous_queries):
|
50 |
previous_context = " -> ".join(previous_queries)
|
51 |
prompt = f"""create a list of {num_topics} subtopics to follow for conducting {user_input} in the context of {previous_context}, RETURN VALID PYTHON LIST"""
|
52 |
+
response_topics = together_response(prompt, model="meta-llama/Llama-3-8b-chat-hf", SysPrompt=SysPromptList)
|
53 |
subtopics = json_from_text(response_topics)
|
54 |
return subtopics
|
55 |
|