Update app.py
Browse files
app.py
CHANGED
@@ -68,11 +68,10 @@ For information on how to customize the ChatInterface, peruse the gradio docs: h
|
|
68 |
)"""
|
69 |
|
70 |
with gr.Blocks() as demo:
|
71 |
-
title_input = gr.Textbox(label="Enter Title", value="Initial Title")
|
72 |
-
with gr.Row():
|
73 |
-
gr.Markdown(f"# {title_input}") # Display the title using Markdown
|
74 |
chat_interface = gr.ChatInterface(
|
75 |
respond,
|
|
|
76 |
additional_inputs=[title_input], # Pass the title input to the `respond` function
|
77 |
)
|
78 |
|
|
|
68 |
)"""
|
69 |
|
70 |
with gr.Blocks() as demo:
|
71 |
+
title_input = gr.Textbox(label="Enter Title", value="Initial Title")
|
|
|
|
|
72 |
chat_interface = gr.ChatInterface(
|
73 |
respond,
|
74 |
+
title=title_input, # Dynamically set the title
|
75 |
additional_inputs=[title_input], # Pass the title input to the `respond` function
|
76 |
)
|
77 |
|