Update app.py
Browse files
app.py
CHANGED
@@ -74,7 +74,14 @@ def chatresponse(message, history):
|
|
74 |
return response
|
75 |
|
76 |
# Launch the Gradio chat interface
|
77 |
-
gr.ChatInterface(
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
78 |
|
79 |
# import gradio as gr
|
80 |
# from langchain_community.document_loaders import CSVLoader # Changed import
|
|
|
74 |
return response
|
75 |
|
76 |
# Launch the Gradio chat interface
|
77 |
+
gr.ChatInterface(
|
78 |
+
chatresponse,
|
79 |
+
textbox = gr.Textbox(placeholder="Type in your message"),
|
80 |
+
title = "AIoT SMART Labs Assistant",
|
81 |
+
description = "Ask AIoT SMART Labs Assistant any question about the organization. Note it can make mistakes. Check important info.",
|
82 |
+
examples = ["What is the IoT Summer Program?", "I'm a 9th grader. Am I eligible for the program?"],
|
83 |
+
theme = "base",
|
84 |
+
).launch()
|
85 |
|
86 |
# import gradio as gr
|
87 |
# from langchain_community.document_loaders import CSVLoader # Changed import
|