Skip to content

Commit

Permalink
Initial Support for Website RAG
Browse files Browse the repository at this point in the history
  • Loading branch information
jonfairbanks committed Feb 28, 2024
1 parent bd484e7 commit a96f644
Show file tree
Hide file tree
Showing 2 changed files with 38 additions and 0 deletions.
4 changes: 4 additions & 0 deletions components/tabs/file_upload.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

from components.tabs.local_files import local_files
from components.tabs.github_repo import github_repo
from components.tabs.website import website


def file_upload():
Expand All @@ -14,3 +15,6 @@ def file_upload():

with st.expander("🗂️  **GitHub Repo**", expanded=False):
github_repo()

with st.expander("🌐   **Website**", expanded=False):
website()
34 changes: 34 additions & 0 deletions components/tabs/website.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
import streamlit as st

def website():
# if st.session_state["selected_model"] is not None:
# st.text_input(
# "Clone a website",
# placeholder="https://ollama.com/blog",
# )
# st.button(
# "Copy",
# )
# else:
# st.text_input(
# "Clone a website",
# placeholder="https://ollama.com/blog",
# disabled=True,
# )
# st.button(
# "Copy",
# disabled=True,
# )

# css_example = '''
# I'm importing the font-awesome icons as a stylesheet!
# <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.5.0/css/all.min.css">

# <i class="fa-brands fa-github"></i>
# <i class="fa-solid fa-dragon"></i>
# <i class="fa-solid fa-paw"></i>
# '''

# st.write(css_example, unsafe_allow_html=True)

st.write(":grey[Coming Soon&trade;]")

0 comments on commit a96f644

Please sign in to comment.