frknayk commited on
Commit
eb5cde1
1 Parent(s): 8b6bb87

Upload 4 files

Browse files
Files changed (4) hide show
  1. .gitignore +146 -0
  2. DockerFile +25 -0
  3. README.md +51 -13
  4. requirements.txt +6 -0
.gitignore ADDED
@@ -0,0 +1,146 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # Byte-compiled / optimized / DLL files
2
+ __pycache__/
3
+ *.py[cod]
4
+ *$py.class
5
+
6
+ # C extensions
7
+ *.so
8
+ .vscode
9
+ *.vscode
10
+ runs/
11
+ Logs/
12
+ logs/
13
+ data/
14
+ papers/
15
+
16
+ # Distribution / packaging
17
+ .Python
18
+ build/
19
+ develop-eggs/
20
+ dist/
21
+ downloads/
22
+ eggs/
23
+ .eggs/
24
+ lib/
25
+ lib64/
26
+ parts/
27
+ sdist/
28
+ var/
29
+ wheels/
30
+ share/python-wheels/
31
+ *.egg-info/
32
+ .installed.cfg
33
+ *.egg
34
+ MANIFEST
35
+ ray_results/
36
+
37
+ # PyInstaller
38
+ # Usually these files are written by a python script from a template
39
+ # before PyInstaller builds the exe, so as to inject date/other infos into it.
40
+ *.manifest
41
+ *.spec
42
+
43
+ # Installer logs
44
+ pip-log.txt
45
+ pip-delete-this-directory.txt
46
+
47
+ # Unit test / coverage reports
48
+ htmlcov/
49
+ .tox/
50
+ .nox/
51
+ .coverage
52
+ .coverage.*
53
+ .cache
54
+ nosetests.xml
55
+ coverage.xml
56
+ *.cover
57
+ *.py,cover
58
+ .hypothesis/
59
+ .pytest_cache/
60
+ cover/
61
+
62
+ # Translations
63
+ *.mo
64
+ *.pot
65
+
66
+ # Django stuff:
67
+ *.log
68
+ local_settings.py
69
+ db.sqlite3
70
+ db.sqlite3-journal
71
+
72
+ # Flask stuff:
73
+ instance/
74
+ .webassets-cache
75
+
76
+ # Scrapy stuff:
77
+ .scrapy
78
+
79
+ # Sphinx documentation
80
+ docs/_build/
81
+
82
+ # PyBuilder
83
+ .pybuilder/
84
+ target/
85
+
86
+ # Jupyter Notebook
87
+ .ipynb_checkpoints
88
+
89
+ # IPython
90
+ profile_default/
91
+ ipython_config.py
92
+
93
+ # pyenv
94
+ # For a library or package, you might want to ignore these files since the code is
95
+ # intended to run in multiple environments; otherwise, check them in:
96
+ # .python-version
97
+
98
+ # pipenv
99
+ # According to pypa/pipenv#598, it is recommended to include Pipfile.lock in version control.
100
+ # However, in case of collaboration, if having platform-specific dependencies or dependencies
101
+ # having no cross-platform support, pipenv may install dependencies that don't work, or not
102
+ # install all needed dependencies.
103
+ #Pipfile.lock
104
+
105
+ # PEP 582; used by e.g. github.com/David-OConnor/pyflow
106
+ __pypackages__/
107
+
108
+ # Celery stuff
109
+ celerybeat-schedule
110
+ celerybeat.pid
111
+
112
+ # SageMath parsed files
113
+ *.sage.py
114
+
115
+ # Environments
116
+ .env
117
+ .venv
118
+ env/
119
+ venv/
120
+ ENV/
121
+ env.bak/
122
+ venv.bak/
123
+
124
+ # Spyder project settings
125
+ .spyderproject
126
+ .spyproject
127
+
128
+ # Rope project settings
129
+ .ropeproject
130
+
131
+ # mkdocs documentation
132
+ /site
133
+
134
+ # mypy
135
+ .mypy_cache/
136
+ .dmypy.json
137
+ dmypy.json
138
+
139
+ # Pyre type checker
140
+ .pyre/
141
+
142
+ # pytype static type analyzer
143
+ .pytype/
144
+
145
+ # Cython debug symbols
146
+ cython_debug/
DockerFile ADDED
@@ -0,0 +1,25 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # app/Dockerfile
2
+ FROM pytorch/pytorch:1.13.1-cuda11.6-cudnn8-devel
3
+
4
+
5
+ WORKDIR /app
6
+
7
+ RUN apt-get update && apt-get install -y \
8
+ build-essential \
9
+ curl \
10
+ software-properties-common \
11
+ git \
12
+ && rm -rf /var/lib/apt/lists/*
13
+
14
+ RUN pip3 install --upgrade pip
15
+
16
+
17
+ COPY / ./
18
+
19
+ RUN pip3 install -r requirements.txt
20
+
21
+ EXPOSE 8501
22
+
23
+ HEALTHCHECK CMD curl --fail http://localhost:8501/_stcore/health
24
+
25
+ ENTRYPOINT ["streamlit", "run", "app.py", "--server.port=8501", "--server.address=0.0.0.0"]
README.md CHANGED
@@ -1,13 +1,51 @@
1
- ---
2
- title: YoutubeSummarizer
3
- emoji: 🐨
4
- colorFrom: pink
5
- colorTo: gray
6
- sdk: streamlit
7
- sdk_version: 1.32.2
8
- app_file: app.py
9
- pinned: false
10
- license: apache-2.0
11
- ---
12
-
13
- Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # Podcast Summarizer
2
+
3
+ Podcast Summarizer is a Streamlit application that summarizes podcast episodes into concise text snippets, providing users with quick insights into the content of each episode.
4
+
5
+
6
+ ## Description
7
+
8
+ This project aims to provide a convenient way for users to get summaries of podcast episodes, helping them decide which episodes to listen to based on their interests.
9
+
10
+ The project consists of a summarization module containing the logic for summarizing podcast episodes, and a Streamlit application (`app.py`) that provides a user-friendly interface for interacting with the summarization functionality.
11
+
12
+ ## Dependencies
13
+
14
+ The project relies on the following Python libraries:
15
+
16
+ - streamlit
17
+ - transformers
18
+ - torch
19
+ - youtube_transcript_api
20
+
21
+ You can install these dependencies using the provided `requirements.txt` file.
22
+
23
+ ## Usage
24
+
25
+ To run the Podcast Summarizer application, follow these steps:
26
+
27
+ 1. Clone the repository:
28
+
29
+ ```bash
30
+ git clone https://github.com/your_username/podcast-summarizer.git
31
+ cd podcast-summarizer
32
+ ```
33
+
34
+ 2. Install the dependencies:
35
+ ```bash
36
+ pip install -r requirements.txt
37
+ ```
38
+
39
+ 3. Run the Streamlit application:
40
+ ```bash
41
+ python -m streamlit run app.py
42
+ ```
43
+
44
+ 4. Access the application in your web browser at http://localhost:8501.
45
+
46
+
47
+ ## Contributing
48
+ Contributions to the Podcast Summarizer project are welcome! If you find any issues or have suggestions for improvements, please open an issue or submit a pull request.
49
+
50
+ ## License
51
+ This project is licensed under the MIT License.
requirements.txt ADDED
@@ -0,0 +1,6 @@
 
 
 
 
 
 
 
1
+ torch
2
+ transformers
3
+ accelerate
4
+ youtube_transcript_api
5
+ streamlit
6
+ streamlit_chat