Update app.py
Browse files65 unmodified lines666768697071727374757677787965 unmodified lines],theme = "soft",)"""with gr.Blocks() as demo:with gr.Blocks() as demo:title_input = gr.Textbox(label="Enter Title", value="Initial Title")chat_interface = gr.ChatInterface(respond,title=title_input, # Dynamically set the titleadditional_inputs=[title_input], # Pass the title input to the `respond` function)if __name__ == "__main__":65 unmodified lines66676869707172737475767778798065 unmodified lines],theme = "soft",)"""with gr.Blocks() as demo:title_input = gr.Textbox(label="Enter Title", value="Initial Title")with gr.Row():gr.Markdown(f"# {title_input}") # Display the title using Markdownchat_interface = gr.ChatInterface(respond,additional_inputs=[title_input], # Pass the title input to the `respond` function)if __name__ == "__main__":
app.py+8-7