From 781fa7a7466066cd7831b5da66c156c66c2a53cc Mon Sep 17 00:00:00 2001 From: Kaustubh Maske Patil <37668193+nikochiko@users.noreply.github.com> Date: Mon, 6 Nov 2023 20:00:40 +0530 Subject: [PATCH] Disable sticky bottom on /copilot --- daras_ai_v2/base.py | 5 ++++- recipes/VideoBots.py | 3 +++ 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/daras_ai_v2/base.py b/daras_ai_v2/base.py index 2ff298ec7..f8899b172 100644 --- a/daras_ai_v2/base.py +++ b/daras_ai_v2/base.py @@ -469,8 +469,11 @@ def get_credits_click_url(self): else: return "/account/" + def get_submit_container_props(self): + return dict(className="position-sticky bottom-0 bg-white") + def render_submit_button(self, key="--submit-1"): - with st.div(className="position-sticky bottom-0 bg-white"): + with st.div(**self.get_submit_container_props()): st.write("---") col1, col2 = st.columns([2, 1], responsive=False) col2.node.props[ diff --git a/recipes/VideoBots.py b/recipes/VideoBots.py index 53a750191..144a81744 100644 --- a/recipes/VideoBots.py +++ b/recipes/VideoBots.py @@ -290,6 +290,9 @@ def preview_description(self, state: dict) -> str: return "Create customized chatbots from your own docs/PDF/webpages. Craft your own bot prompts using the creative GPT3, fast GPT 3.5-turbo or powerful GPT4 & optionally prevent hallucinations by constraining all answers to just your citations. Available as Facebook, Instagram, WhatsApp bots or via API. Add multi-lingual speech recognition and text-to-speech in 100+ languages and even video responses. Collect 👍🏾 👎🏽 feedback + see usage & retention graphs too! This is the workflow that powers https://Farmer.CHAT and it's yours to tweak." # return "Create an amazing, interactive AI videobot with just a GPT3 script + a video clip or photo. To host it on your own site or app, contact us at support@gooey.ai" + def get_submit_container_props(self): + return {} + def render_description(self): st.write( """