Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -93,21 +93,19 @@ add_ping_route(fastapi_app, call_langflow)
|
|
| 93 |
|
| 94 |
|
| 95 |
|
| 96 |
-
# Create Gradio Chat Interface
|
| 97 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
| 98 |
css="""
|
| 99 |
footer {display: none !important;}
|
| 100 |
.footer {display: none !important;}
|
| 101 |
#footer {display: none !important;}
|
| 102 |
.svelte-1p1dq6v {display: none !important;}
|
| 103 |
"""
|
| 104 |
-
)
|
| 105 |
-
gr.ChatInterface(
|
| 106 |
-
fn=call_langflow,
|
| 107 |
-
title="CPA Chatbot POC",
|
| 108 |
-
description="You can use this chatbot to answer questions related to Crown Pointe Academy policies.",
|
| 109 |
-
examples=["Summarize the school's uniform policy", "Can a student wear earrings?"],
|
| 110 |
-
)
|
| 111 |
|
| 112 |
# Mount Gradio app to FastAPI at root path
|
| 113 |
-
app = gr.mount_gradio_app(fastapi_app,
|
|
|
|
| 93 |
|
| 94 |
|
| 95 |
|
| 96 |
+
# Create Gradio Chat Interface
|
| 97 |
+
chatui = gr.ChatInterface(
|
| 98 |
+
fn=call_langflow,
|
| 99 |
+
title="CPA Chatbot POC",
|
| 100 |
+
description="You can use this chatbot to answer questions related to Crown Pointe Academy policies.",
|
| 101 |
+
examples=["Summarize the school's uniform policy", "Can a student wear earrings?"],
|
| 102 |
css="""
|
| 103 |
footer {display: none !important;}
|
| 104 |
.footer {display: none !important;}
|
| 105 |
#footer {display: none !important;}
|
| 106 |
.svelte-1p1dq6v {display: none !important;}
|
| 107 |
"""
|
| 108 |
+
)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 109 |
|
| 110 |
# Mount Gradio app to FastAPI at root path
|
| 111 |
+
app = gr.mount_gradio_app(fastapi_app, chatui, path="/")
|