Update app.py
Browse files
app.py
CHANGED
@@ -43,12 +43,14 @@ def respond(
|
|
43 |
"""
|
44 |
For information on how to customize the ChatInterface, peruse the gradio docs: https://www.gradio.app/docs/chatinterface
|
45 |
"""
|
46 |
-
|
47 |
-
|
48 |
-
|
49 |
-
|
50 |
-
|
51 |
-
)
|
|
|
|
|
52 |
|
53 |
|
54 |
if __name__ == "__main__":
|
|
|
43 |
"""
|
44 |
For information on how to customize the ChatInterface, peruse the gradio docs: https://www.gradio.app/docs/chatinterface
|
45 |
"""
|
46 |
+
with gr.Blocks() as demo:
|
47 |
+
gr.Markdown(f"## {self.title}\n{self.description}")
|
48 |
+
gr.ChatInterface(
|
49 |
+
respond,
|
50 |
+
additional_inputs=[
|
51 |
+
gr.Textbox(value="You are a friendly Chatbot.", label="System message"),
|
52 |
+
],
|
53 |
+
)
|
54 |
|
55 |
|
56 |
if __name__ == "__main__":
|