Spaces:
Runtime error
Runtime error
Update app.py
#1
by Su4374651 - opened
14 unmodified lines151617181819202124 unmodified lines46474849495051526 unmodified lines596061626362636465666667686914 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 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 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 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 = [ ["I feel overwhelmed with work."], ["Can you guide me through a quick meditation?"], ["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 = 'Calm Mate 🕊️' title = 'Business Help 🕊️')
app.py+5-5