Spaces:
Runtime error
Runtime error
Update app.py
Browse files14 unmodified lines1516171819202124 unmodified lines464748495051526 unmodified lines596061626364656667686914 unmodified linestemperature,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."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.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(6 unmodified lines],examples = [["I feel overwhelmed with work."],["Can you guide me through a quick meditation?"],["How do I stop worrying about things I can't control?"]],title = 'Calm Mate 🕊️')14 unmodified lines1516171819202124 unmodified lines464748495051526 unmodified lines596061626364656667686914 unmodified linestemperature,top_p,):system_message = "You are business man personality. You have around 10 years of experience in business. how to start, how to growth. Also, you give some opportunities for newcomers who are beginners in business."messages = [{"role": "system", "content": system_message}]for val in history:24 unmodified linesdemo = gr.ChatInterface(respond,additional_inputs=[gr.Textbox(value = "You are business man personality. You have around 10 years of experience in business. how to start, how to growth. Also, you give some opportunities for newcomers who are beginners in business.", 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(6 unmodified lines],examples = [["Can you provide me best business tip?."],["Can you guide me how to gain trust of customers and build business?"],["How do I stop worrying about things I can't control?"]],title = 'Business Help 🕊️')
app.py+5-5