Update app.py
Browse files42 unmodified lines4344454647484950515253545556575859606162636465666768697071727342 unmodified lines"""For information on how to customize the ChatInterface, peruse the gradio docs: https://www.gradio.app/docs/chatinterface"""with gr.Blocks() as demo:# Adding a label at the top of the pagegr.Markdown("""# Welcome to My Chat InterfaceThis app uses the Llama-3.2-1B-Instruct model to provide conversational AI responses.Adjust the parameters below to customize the chat behavior.""")demo = gr.ChatInterface(respond,additional_inputs=[gr.Textbox(value="You are a friendly Chatbot.", 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.75, step=0.1, label="Temperature"),gr.Slider(minimum=0.1,maximum=1.0,value=0.95,step=0.05,label="Top-p (nucleus sampling)",),],)if __name__ == "__main__":demo.launch()42 unmodified lines4344454647484950515253545556575859606162636465666768697071727342 unmodified lines"""For information on how to customize the ChatInterface, peruse the gradio docs: https://www.gradio.app/docs/chatinterface"""with gr.Blocks() as demo:# Adding a label at the top of the pagegr.Markdown("""# Welcome to My Chat InterfaceThis app uses the Llama-3.2-1B-Instruct model to provide conversational AI responses.Adjust the parameters below to customize the chat behavior.""")demo = gr.ChatInterface(respond,additional_inputs=[gr.Textbox(value="You are a friendly Chatbot.", 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.75, step=0.1, label="Temperature"),gr.Slider(minimum=0.1,maximum=1.0,value=0.95,step=0.05,label="Top-p (nucleus sampling)",),],)if __name__ == "__main__":demo.launch()
app.py+27-27