Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -11,7 +11,7 @@ retrieval_model_name = 'output/sentence-transformer-finetuned/'
|
|
11 |
|
12 |
openai.api_key = os.environ["OPENAI_API_KEY"]
|
13 |
|
14 |
-
system_message = "Your name is Fillira, and you are an energetic, casual, and friendly chatbot that invents creative music playlist titles based on the genres
|
15 |
# Initial system message to set the behavior of the assistant
|
16 |
messages = [{"role": "system", "content": system_message}]
|
17 |
|
@@ -116,8 +116,7 @@ welcome_message = """
|
|
116 |
|
117 |
topics = """
|
118 |
|
119 |
-
Hey, it's Fillira! I'm here to help you create an amazing playlist title! Just tell me what the genre
|
120 |
-
|
121 |
"""
|
122 |
|
123 |
# Setup the Gradio Blocks interface with custom layout components
|
@@ -129,8 +128,8 @@ with gr.Blocks(theme='shivi/calm_seafoam') as demo:
|
|
129 |
gr.Markdown(topics) # Show the topics on the left side
|
130 |
with gr.Row():
|
131 |
with gr.Column():
|
132 |
-
question = gr.Textbox(label="
|
133 |
-
answer = gr.Textbox(label="Fillira", placeholder="", interactive=False, lines=10)
|
134 |
submit_button = gr.Button("Shoot!")
|
135 |
submit_button.click(fn=query_model, inputs=question, outputs=answer)
|
136 |
|
|
|
11 |
|
12 |
openai.api_key = os.environ["OPENAI_API_KEY"]
|
13 |
|
14 |
+
system_message = "Your name is Fillira, and you are an energetic, casual, and friendly chatbot that invents creative music playlist titles based on the genres or vibes of the songs included. Please suggest multiple aesthetically pleasing playlist names and be casual with your answer!"
|
15 |
# Initial system message to set the behavior of the assistant
|
16 |
messages = [{"role": "system", "content": system_message}]
|
17 |
|
|
|
116 |
|
117 |
topics = """
|
118 |
|
119 |
+
Hey, it's Fillira! I'm here to help you create an amazing playlist title! Just tell me what the genre or vibe of the playlist, I got you ⭐️
|
|
|
120 |
"""
|
121 |
|
122 |
# Setup the Gradio Blocks interface with custom layout components
|
|
|
128 |
gr.Markdown(topics) # Show the topics on the left side
|
129 |
with gr.Row():
|
130 |
with gr.Column():
|
131 |
+
question = gr.Textbox(label="User", placeholder="Need anything?")
|
132 |
+
answer = gr.Textbox(label="Fillira", placeholder="Talk to me...", interactive=False, lines=10)
|
133 |
submit_button = gr.Button("Shoot!")
|
134 |
submit_button.click(fn=query_model, inputs=question, outputs=answer)
|
135 |
|