Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -59,7 +59,7 @@ def call_langflow(message, history):
|
|
| 59 |
return f"Error parsing response: {str(e)}\nResponse: {data}"
|
| 60 |
|
| 61 |
# Create Gradio Chat Interface
|
| 62 |
-
|
| 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.",
|
|
@@ -68,6 +68,7 @@ demo = gr.ChatInterface(
|
|
| 68 |
retry_btn=None,
|
| 69 |
undo_btn=None,
|
| 70 |
)
|
|
|
|
| 71 |
# Wrap in Blocks to add custom CSS
|
| 72 |
with gr.Blocks(css=".footer {display: none !important;}") as demo:
|
| 73 |
chat.render()
|
|
|
|
| 59 |
return f"Error parsing response: {str(e)}\nResponse: {data}"
|
| 60 |
|
| 61 |
# Create Gradio Chat Interface
|
| 62 |
+
chat = 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.",
|
|
|
|
| 68 |
retry_btn=None,
|
| 69 |
undo_btn=None,
|
| 70 |
)
|
| 71 |
+
|
| 72 |
# Wrap in Blocks to add custom CSS
|
| 73 |
with gr.Blocks(css=".footer {display: none !important;}") as demo:
|
| 74 |
chat.render()
|