Update app.py
Browse files
app.py
CHANGED
|
@@ -45,7 +45,7 @@ def respond(
|
|
| 45 |
For information on how to customize the ChatInterface, peruse the gradio docs: https://www.gradio.app/docs/chatinterface
|
| 46 |
"""
|
| 47 |
|
| 48 |
-
|
| 49 |
respond,
|
| 50 |
|
| 51 |
title="**Your word** \ Score \ Prompts left ",
|
|
@@ -65,15 +65,15 @@ For information on how to customize the ChatInterface, peruse the gradio docs: h
|
|
| 65 |
),
|
| 66 |
],
|
| 67 |
theme = "soft",
|
| 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 |
|
| 78 |
if __name__ == "__main__":
|
| 79 |
|
|
|
|
| 45 |
For information on how to customize the ChatInterface, peruse the gradio docs: https://www.gradio.app/docs/chatinterface
|
| 46 |
"""
|
| 47 |
|
| 48 |
+
demo = gr.ChatInterface(
|
| 49 |
respond,
|
| 50 |
|
| 51 |
title="**Your word** \ Score \ Prompts left ",
|
|
|
|
| 65 |
),
|
| 66 |
],
|
| 67 |
theme = "soft",
|
| 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 |
|
| 78 |
if __name__ == "__main__":
|
| 79 |
|