Spaces:
Sleeping
Sleeping
vaishnav
commited on
Commit
·
bea3e61
1
Parent(s):
31a4877
suppress warnings
Browse files- app.py +7 -2
- configs/.env +6 -1
app.py
CHANGED
@@ -33,6 +33,11 @@ def respond(user_input, history):
|
|
33 |
|
34 |
if __name__ == '__main__':
|
35 |
logging.info("Starting AIVIz Bot")
|
36 |
-
chatbot = gr.Chatbot(placeholder="<strong>AISDb Chatbot</strong><br>Ask Me Anything")
|
37 |
|
38 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
33 |
|
34 |
if __name__ == '__main__':
|
35 |
logging.info("Starting AIVIz Bot")
|
|
|
36 |
|
37 |
+
# Using ChatInterface to create the chatbot interface
|
38 |
+
chat_interface = gr.ChatInterface(
|
39 |
+
fn=respond,
|
40 |
+
title="AISDb ChatBot",
|
41 |
+
)
|
42 |
+
|
43 |
+
chat_interface.launch(share=True)
|
configs/.env
CHANGED
@@ -1 +1,6 @@
|
|
1 |
-
GOOGLE_API_KEY=""
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
GOOGLE_API_KEY=""
|
2 |
+
USER_AGENT="myagent"
|
3 |
+
|
4 |
+
# Suppress logging warnings
|
5 |
+
GRPC_VERBOSITY = "ERROR" # Limits gRPC logs to errors only.
|
6 |
+
GLOG_minloglevel ="2" # Limits Google logging (used by Abseil) to errors only.
|