Skip to content

Commit

Permalink
Merge pull request #3 from the-ai-team/client/1/initialize
Browse files Browse the repository at this point in the history
Initialize client
  • Loading branch information
chamodperera authored Feb 26, 2023
2 parents c6ada2b + b09fb33 commit 9583d41
Show file tree
Hide file tree
Showing 5 changed files with 30 additions and 0 deletions.
5 changes: 5 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,3 +10,8 @@
{app} - client/server
{#} - issue number
{name} - branch name

## Commands

To run frontend -
`streamlit run client/main.py`
Empty file removed client.py
Empty file.
20 changes: 20 additions & 0 deletions client/main.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
import streamlit as st
import os

st.set_page_config(page_title="SummarizeIt", page_icon=":page_facing_up:")
st.title("Summarize it")

# Adding styles
script_dir = os.path.dirname(__file__)
def local_css(file_name):
abs_path_dir = os.path.join(script_dir, file_name)
with open(abs_path_dir) as f:
st.markdown(f'<style>{f.read()}</style>', unsafe_allow_html=True)
local_css("style.css")

st.text_input("Input URL to Research Paper")
selectable_tags = ['Beginner', 'Sample Tag', 'Tag2', 'Tag3']
default_tags = ['Beginner']
tags = st.multiselect(
'Select tags',
selectable_tags, default_tags)
4 changes: 4 additions & 0 deletions client/style.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
@import url('https://fonts.googleapis.com/css2?family=Fira+Sans:ital,wght@0,200;0,400;0,600;1,200;1,400;1,500&display=swap');
html, body, [class*="css"] {
font-family: 'Fira Sans', sans-serif;
}
1 change: 1 addition & 0 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
streamlit~=1.18.1

0 comments on commit 9583d41

Please sign in to comment.