Spaces:
Sleeping
Sleeping
dunkindonuts123 commited on
Commit ·
5ed9294
1
Parent(s): 537a1be
huggingface deployment
Browse files- .dockerignore +10 -0
- .gitignore +3 -2
- Dockerfile +19 -0
- README.md +13 -0
- cache/idf_weights_train_val.pkl +3 -0
.dockerignore
ADDED
|
@@ -0,0 +1,10 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
.git
|
| 2 |
+
.venv
|
| 3 |
+
venv
|
| 4 |
+
__pycache__
|
| 5 |
+
*.ipynb
|
| 6 |
+
.ipynb_checkpoints
|
| 7 |
+
.DS_Store
|
| 8 |
+
per_sample_results.csv
|
| 9 |
+
aggregate_comparison.csv
|
| 10 |
+
*.png
|
.gitignore
CHANGED
|
@@ -23,5 +23,6 @@ per_sample_results.csv
|
|
| 23 |
output.png
|
| 24 |
rouge_comparison.png
|
| 25 |
|
| 26 |
-
# App cache (rebuilt
|
| 27 |
-
cache/
|
|
|
|
|
|
| 23 |
output.png
|
| 24 |
rouge_comparison.png
|
| 25 |
|
| 26 |
+
# App cache (other files rebuilt locally; IDF pickle is shipped for HF Spaces)
|
| 27 |
+
cache/*
|
| 28 |
+
!cache/idf_weights_train_val.pkl
|
Dockerfile
ADDED
|
@@ -0,0 +1,19 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
FROM python:3.10-slim
|
| 2 |
+
|
| 3 |
+
WORKDIR /code
|
| 4 |
+
|
| 5 |
+
# System deps (optional but helps with some wheels)
|
| 6 |
+
RUN apt-get update && apt-get install -y --no-install-recommends \
|
| 7 |
+
build-essential \
|
| 8 |
+
&& rm -rf /var/lib/apt/lists/*
|
| 9 |
+
|
| 10 |
+
COPY requirements.txt .
|
| 11 |
+
RUN pip install --no-cache-dir -r requirements.txt
|
| 12 |
+
|
| 13 |
+
COPY . .
|
| 14 |
+
|
| 15 |
+
# HF Spaces expects port 7860
|
| 16 |
+
ENV PORT=7860
|
| 17 |
+
EXPOSE 7860
|
| 18 |
+
|
| 19 |
+
CMD uvicorn app:app --host 0.0.0.0 --port ${PORT}
|
README.md
ADDED
|
@@ -0,0 +1,13 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
---
|
| 2 |
+
title: Auto-README Java Summarizer
|
| 3 |
+
emoji: 📄
|
| 4 |
+
colorFrom: blue
|
| 5 |
+
colorTo: purple
|
| 6 |
+
sdk: docker
|
| 7 |
+
app_port: 7860
|
| 8 |
+
pinned: false
|
| 9 |
+
license: mit
|
| 10 |
+
---
|
| 11 |
+
|
| 12 |
+
Compare four Java code summarization models (TF-IDF, LexRank, SentenceTransformers, CodeT5).
|
| 13 |
+
Upload a `.java` file to see side-by-side summaries.
|
cache/idf_weights_train_val.pkl
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:8ba95b76261ff448b1bb57416aca67aa1403773522270398efc6334ff6ab0382
|
| 3 |
+
size 123795
|