Spaces:
Build error
Build error
Maria Dyshel
commited on
Commit
·
aa8bc25
1
Parent(s):
963dcba
first commit
Browse files- .gitignore +126 -0
- app.py +4 -0
- requirements.txt +2 -0
.gitignore
ADDED
|
@@ -0,0 +1,126 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# BigData and Models
|
| 2 |
+
.nlpia2-data
|
| 3 |
+
*.joblib
|
| 4 |
+
*.pickle
|
| 5 |
+
# FIXME: move these to .nlpia2-data and create index with URLs in data sources.yml
|
| 6 |
+
src/nlpia2/data/big
|
| 7 |
+
|
| 8 |
+
# DL models
|
| 9 |
+
*.pt
|
| 10 |
+
**/checkpoints/
|
| 11 |
+
**/checkpoint/
|
| 12 |
+
|
| 13 |
+
# src/nlpia2/data
|
| 14 |
+
db.sqlite3
|
| 15 |
+
*.bz2
|
| 16 |
+
*.zip
|
| 17 |
+
*.pkl
|
| 18 |
+
*.npy
|
| 19 |
+
*.pkl
|
| 20 |
+
**/simple-transformers
|
| 21 |
+
**/albert-large-*
|
| 22 |
+
/char_rnn_from_scratch_refactored.meta.json
|
| 23 |
+
|
| 24 |
+
# submodules
|
| 25 |
+
src/wikipedia
|
| 26 |
+
src/nessvec
|
| 27 |
+
|
| 28 |
+
# Temporary and binary files
|
| 29 |
+
condaenv.*.requirements.txt
|
| 30 |
+
*~
|
| 31 |
+
*.py[cod]
|
| 32 |
+
*.so
|
| 33 |
+
*.cfg
|
| 34 |
+
!.isort.cfg
|
| 35 |
+
*.orig
|
| 36 |
+
*.log
|
| 37 |
+
disaster_tweets_cnn_pipeline*.json
|
| 38 |
+
*.pot
|
| 39 |
+
.pytest_cache/*
|
| 40 |
+
__pycache__/*
|
| 41 |
+
.DS_*
|
| 42 |
+
.cache/*
|
| 43 |
+
.*.swp
|
| 44 |
+
.ipynb_checkpoints
|
| 45 |
+
*/.ipynb_checkpoints/*
|
| 46 |
+
.coverage*
|
| 47 |
+
cache_dir/
|
| 48 |
+
pyproject.toml.bak
|
| 49 |
+
|
| 50 |
+
# repo2docker
|
| 51 |
+
.ipython
|
| 52 |
+
.jupyter
|
| 53 |
+
.jupyter-server-log.txt
|
| 54 |
+
|
| 55 |
+
# pypi package setup files
|
| 56 |
+
# pyproject must not be in root dir for `pip install -e .` to work
|
| 57 |
+
# pyproject.toml
|
| 58 |
+
# !scripts/pyproject.toml
|
| 59 |
+
# !setup.cfg
|
| 60 |
+
|
| 61 |
+
# Internal working cache for poetry
|
| 62 |
+
poetry.lock
|
| 63 |
+
|
| 64 |
+
# Project files
|
| 65 |
+
.ropeproject
|
| 66 |
+
.project
|
| 67 |
+
.pydevproject
|
| 68 |
+
.settings
|
| 69 |
+
.idea
|
| 70 |
+
.vscode
|
| 71 |
+
tags
|
| 72 |
+
*.code-workspace
|
| 73 |
+
*.sublime-workspace
|
| 74 |
+
|
| 75 |
+
# Package files
|
| 76 |
+
*.egg
|
| 77 |
+
*.eggs/
|
| 78 |
+
.installed.cfg
|
| 79 |
+
*.egg-info
|
| 80 |
+
|
| 81 |
+
# Unittest and coverage
|
| 82 |
+
htmlcov/*
|
| 83 |
+
.coverage
|
| 84 |
+
.tox
|
| 85 |
+
junit.xml
|
| 86 |
+
coverage.xml
|
| 87 |
+
.pytest_cache/
|
| 88 |
+
pytest-results*
|
| 89 |
+
|
| 90 |
+
# Build and docs folder/files
|
| 91 |
+
build/*
|
| 92 |
+
dist/*
|
| 93 |
+
sdist/*
|
| 94 |
+
docs/api/*
|
| 95 |
+
docs/_rst/*
|
| 96 |
+
docs/_build/*
|
| 97 |
+
cover/*
|
| 98 |
+
runs/*
|
| 99 |
+
MANIFEST
|
| 100 |
+
|
| 101 |
+
# Mac
|
| 102 |
+
__MACOSX
|
| 103 |
+
|
| 104 |
+
# KDE
|
| 105 |
+
.directory
|
| 106 |
+
|
| 107 |
+
|
| 108 |
+
# Per-project virtualenvs
|
| 109 |
+
.venv*/
|
| 110 |
+
venv/
|
| 111 |
+
|
| 112 |
+
# docs html
|
| 113 |
+
docs/**/*.html
|
| 114 |
+
|
| 115 |
+
# secrets
|
| 116 |
+
.env
|
| 117 |
+
**/*secret*
|
| 118 |
+
**/*private*
|
| 119 |
+
|
| 120 |
+
# Big Data
|
| 121 |
+
src/nlpia2/data/meuller/*.pdf
|
| 122 |
+
|
| 123 |
+
# other git repos
|
| 124 |
+
src/nlpia2/ch08/nlpia-rnn/
|
| 125 |
+
src/nlpia2/ch08/huggingface-spaces-nlpia-rnn/
|
| 126 |
+
|
app.py
ADDED
|
@@ -0,0 +1,4 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
import streamlit as st
|
| 2 |
+
|
| 3 |
+
x = st.slider('Select a value')
|
| 4 |
+
st.write(x, 'squared is', x * x)
|
requirements.txt
ADDED
|
@@ -0,0 +1,2 @@
|
|
|
|
|
|
|
|
|
|
| 1 |
+
transformers
|
| 2 |
+
torch
|