Update app.py
Browse files
app.py
CHANGED
|
@@ -66,14 +66,15 @@ For information on how to customize the ChatInterface, peruse the gradio docs: h
|
|
| 66 |
],
|
| 67 |
theme = "soft",
|
| 68 |
)"""
|
|
|
|
| 69 |
with gr.Blocks() as demo:
|
| 70 |
-
|
| 71 |
-
|
| 72 |
-
|
| 73 |
-
|
| 74 |
-
|
| 75 |
-
|
| 76 |
-
|
| 77 |
|
| 78 |
if __name__ == "__main__":
|
| 79 |
|
|
|
|
| 66 |
],
|
| 67 |
theme = "soft",
|
| 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 |
|
| 79 |
if __name__ == "__main__":
|
| 80 |
|