Spaces:
Sleeping
Sleeping
Updated to have more specific CPA content.
Browse files
app.py
CHANGED
|
@@ -18,7 +18,7 @@ def call_langflow(message, history):
|
|
| 18 |
"Content-Type": "application/json",
|
| 19 |
}
|
| 20 |
|
| 21 |
-
# Add API
|
| 22 |
if HF_API_KEY:
|
| 23 |
headers["Authorization"] = f"Bearer {HF_API_KEY}"
|
| 24 |
if LANGFLOW_API_KEY:
|
|
@@ -61,9 +61,9 @@ def call_langflow(message, history):
|
|
| 61 |
# Create Gradio Chat Interface
|
| 62 |
demo = gr.ChatInterface(
|
| 63 |
fn=call_langflow,
|
| 64 |
-
title="
|
| 65 |
-
description="
|
| 66 |
-
examples=["
|
| 67 |
theme=gr.themes.Soft(),
|
| 68 |
retry_btn=None,
|
| 69 |
undo_btn=None,
|
|
|
|
| 18 |
"Content-Type": "application/json",
|
| 19 |
}
|
| 20 |
|
| 21 |
+
# Add API keys
|
| 22 |
if HF_API_KEY:
|
| 23 |
headers["Authorization"] = f"Bearer {HF_API_KEY}"
|
| 24 |
if LANGFLOW_API_KEY:
|
|
|
|
| 61 |
# Create Gradio Chat Interface
|
| 62 |
demo = gr.ChatInterface(
|
| 63 |
fn=call_langflow,
|
| 64 |
+
title="CPA Chatbot POC",
|
| 65 |
+
description="You can use this chatbot to answer questions related to Crown Pointe Academy policies.",
|
| 66 |
+
examples=["Summarize the school's uniform policy", "Can a student wear earrings?"],
|
| 67 |
theme=gr.themes.Soft(),
|
| 68 |
retry_btn=None,
|
| 69 |
undo_btn=None,
|