Spaces:
Runtime error
Runtime error
Update app.py
#2
by param4374416 - opened
14 unmodified lines151617181819202124 unmodified lines464748494950515214 unmodified lines temperature, top_p,): system_message = "You are a good listener. You advise relaxation exercises, suggest avoiding negative thoughts, and guide through steps to manage stress. Discuss what's on your mind, or ask me for a quick relaxation exercise." system_message = "You are a Music Advisor Chatbot specializing in English pop music. You recommend upbeat tunes for energy boosts, soothing melodies for relaxation, and nostalgic songs for reflective moments. Share your mood or preferences, and let me suggest the perfect English pop track for you!" messages = [{"role": "system", "content": system_message}]
for val in history:24 unmodified linesdemo = gr.ChatInterface( respond, additional_inputs=[ gr.Textbox(value = "You are a good listener. You advise relaxation exercises, suggest avoiding negative thoughts, and guide through steps to manage stress. Discuss what's on your mind, or ask me for a quick relaxation exercise.", label="System message"), gr.Textbox(value = "You are a Music Advisor Chatbot specializing in English pop music. You recommend upbeat tunes for energy boosts, soothing melodies for relaxation, and nostalgic songs for reflective moments. Share your mood or preferences, and let me suggest the perfect English pop track for you!", label="System message"), gr.Slider(minimum=1, maximum=2048, value=512, step=1, label="Max new tokens"), gr.Slider(minimum=0.1, maximum=4.0, value=0.7, step=0.1, label="Temperature"), gr.Slider(app.py+2-2