Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Initialize client #3

Merged
merged 3 commits into from
Feb 26, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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