Spaces:
No application file
No application file
Maria Dyshel
commited on
Commit
·
a4d2df9
1
Parent(s):
c629821
added uploading data
Browse files- .gitignore +106 -0
- Home.py +2 -2
- assets/delvin_logo.png +0 -0
- pages/1_Data.py +20 -0
- requirements.txt +4 -0
.gitignore
ADDED
@@ -0,0 +1,106 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
# BigData and Models
|
2 |
+
*.joblib
|
3 |
+
*.pickle
|
4 |
+
|
5 |
+
# DL models
|
6 |
+
*.pt
|
7 |
+
**/checkpoints/
|
8 |
+
**/checkpoint/
|
9 |
+
|
10 |
+
# src/nlpia2/data
|
11 |
+
db.sqlite3
|
12 |
+
*.bz2
|
13 |
+
*.zip
|
14 |
+
*.pkl
|
15 |
+
*.npy
|
16 |
+
*.pkl
|
17 |
+
*.db
|
18 |
+
*.faiss
|
19 |
+
|
20 |
+
# submodules
|
21 |
+
|
22 |
+
# Temporary and binary files
|
23 |
+
*~
|
24 |
+
*.py[cod]
|
25 |
+
*.so
|
26 |
+
*.cfg
|
27 |
+
!.isort.cfg
|
28 |
+
*.orig
|
29 |
+
*.log
|
30 |
+
*.pot
|
31 |
+
.pytest_cache/*
|
32 |
+
__pycache__/*
|
33 |
+
.DS_*
|
34 |
+
.cache/*
|
35 |
+
.*.swp
|
36 |
+
.ipynb_checkpoints
|
37 |
+
*/.ipynb_checkpoints/*
|
38 |
+
.coverage*
|
39 |
+
cache_dir/
|
40 |
+
|
41 |
+
# repo2docker
|
42 |
+
.ipython
|
43 |
+
.jupyter
|
44 |
+
.jupyter-server-log.txt
|
45 |
+
|
46 |
+
# pypi package setup files
|
47 |
+
# pyproject must not be in root dir for `pip install -e .` to work
|
48 |
+
# pyproject.toml
|
49 |
+
# !scripts/pyproject.toml
|
50 |
+
# !setup.cfg
|
51 |
+
|
52 |
+
# Internal working cache for poetry
|
53 |
+
poetry.lock
|
54 |
+
|
55 |
+
# Project files
|
56 |
+
.ropeproject
|
57 |
+
.project
|
58 |
+
.pydevproject
|
59 |
+
.settings
|
60 |
+
.idea
|
61 |
+
.vscode
|
62 |
+
tags
|
63 |
+
*.code-workspace
|
64 |
+
*.sublime-workspace
|
65 |
+
|
66 |
+
# Package files
|
67 |
+
*.egg
|
68 |
+
*.eggs/
|
69 |
+
.installed.cfg
|
70 |
+
*.egg-info
|
71 |
+
|
72 |
+
# Unittest and coverage
|
73 |
+
htmlcov/*
|
74 |
+
.coverage
|
75 |
+
.tox
|
76 |
+
junit.xml
|
77 |
+
coverage.xml
|
78 |
+
.pytest_cache/
|
79 |
+
pytest-results*
|
80 |
+
|
81 |
+
# Build and docs folder/files
|
82 |
+
build/*
|
83 |
+
dist/*
|
84 |
+
sdist/*
|
85 |
+
docs/api/*
|
86 |
+
docs/_rst/*
|
87 |
+
docs/_build/*
|
88 |
+
cover/*
|
89 |
+
runs/*
|
90 |
+
MANIFEST
|
91 |
+
|
92 |
+
# Mac
|
93 |
+
__MACOSX
|
94 |
+
|
95 |
+
# KDE
|
96 |
+
.directory
|
97 |
+
|
98 |
+
# Per-project virtualenvs
|
99 |
+
.venv*/
|
100 |
+
venv/
|
101 |
+
|
102 |
+
# secrets
|
103 |
+
.env
|
104 |
+
**/*secret*
|
105 |
+
**/*private*
|
106 |
+
|
Home.py
CHANGED
@@ -1,4 +1,4 @@
|
|
1 |
import streamlit as st
|
2 |
|
3 |
-
|
4 |
-
st.
|
|
|
1 |
import streamlit as st
|
2 |
|
3 |
+
st.image("./assets/delvin_logo.png")
|
4 |
+
st.header("Welcome to Delvin!")
|
assets/delvin_logo.png
ADDED
![]() |
pages/1_Data.py
ADDED
@@ -0,0 +1,20 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
import pandas as pd
|
2 |
+
import streamlit as st
|
3 |
+
|
4 |
+
st.set_page_config(page_title="Upload Data")
|
5 |
+
|
6 |
+
# Add a title to the app
|
7 |
+
st.title("Upload CSV File")
|
8 |
+
|
9 |
+
# Create a file uploader
|
10 |
+
uploaded_file = st.file_uploader("Choose a CSV file", type="csv")
|
11 |
+
|
12 |
+
df = pd.DataFrame()
|
13 |
+
|
14 |
+
# If a file was uploaded
|
15 |
+
if uploaded_file is not None:
|
16 |
+
# Read the file and create a Pandas DataFrame
|
17 |
+
df = pd.read_csv(uploaded_file)
|
18 |
+
|
19 |
+
# Show the DataFrame
|
20 |
+
st.write(df.head(4))
|
requirements.txt
ADDED
@@ -0,0 +1,4 @@
|
|
|
|
|
|
|
|
|
|
|
1 |
+
pandas
|
2 |
+
streamlit==1.17.0
|
3 |
+
transformers
|
4 |
+
torch
|