Skip to content

Commit

Permalink
Disable sticky bottom on /copilot
Browse files Browse the repository at this point in the history
  • Loading branch information
nikochiko authored and devxpy committed Nov 6, 2023
1 parent 40eba52 commit 781fa7a
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
5 changes: 4 additions & 1 deletion daras_ai_v2/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -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[
Expand Down
3 changes: 3 additions & 0 deletions recipes/VideoBots.py
Original file line number Diff line number Diff line change
Expand Up @@ -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 [email protected]"

def get_submit_container_props(self):
return {}

def render_description(self):
st.write(
"""
Expand Down

0 comments on commit 781fa7a

Please sign in to comment.