Spaces:
Runtime error
Runtime error
Merge pull request #2 from lauracabayol/docker_WaB
Browse files- .github/workflows/huggingface.yml +20 -0
- README.md +9 -0
- pyproject.toml +57 -0
.github/workflows/huggingface.yml
ADDED
@@ -0,0 +1,20 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
name: Sync to Hugging Face hub
|
2 |
+
on:
|
3 |
+
push:
|
4 |
+
branches: [master]
|
5 |
+
|
6 |
+
# to run this workflow manually from the Actions tab
|
7 |
+
workflow_dispatch:
|
8 |
+
|
9 |
+
jobs:
|
10 |
+
sync-to-hub:
|
11 |
+
runs-on: ubuntu-latest
|
12 |
+
steps:
|
13 |
+
- uses: actions/checkout@v3
|
14 |
+
with:
|
15 |
+
fetch-depth: 0
|
16 |
+
lfs: true
|
17 |
+
- name: Push to hub
|
18 |
+
env:
|
19 |
+
HF_TOKEN: ${{ secrets.HF_TOKEN }}
|
20 |
+
run: git push --force https://lauracabayol:$HF_TOKEN@huggingface.co/spaces/lauracabayol/TEMPS main
|
README.md
ADDED
@@ -0,0 +1,9 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
---
|
2 |
+
title: UFC Predictor
|
3 |
+
emoji: 🥋
|
4 |
+
colorFrom: blue
|
5 |
+
colorTo: red
|
6 |
+
sdk: docker
|
7 |
+
python_version: 3.12
|
8 |
+
pinned: false
|
9 |
+
---
|
pyproject.toml
ADDED
@@ -0,0 +1,57 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
[build-system]
|
2 |
+
requires = ["setuptools>=61.0"]
|
3 |
+
build-backend = "setuptools.build_meta"
|
4 |
+
|
5 |
+
[project]
|
6 |
+
name="temps"
|
7 |
+
version="2024.0.0"
|
8 |
+
authors = [
|
9 |
+
{ name="Laura Cabayol-Garcia", email="lcabayol@pic.es" },
|
10 |
+
]
|
11 |
+
maintainers = [
|
12 |
+
{ name="Laura Cabayol-Garcia", email="lcabayol@pic.es" },
|
13 |
+
]
|
14 |
+
description = "Neural network to predict photometric redshifts implementing domain adaptation"
|
15 |
+
readme = "README.md"
|
16 |
+
|
17 |
+
keywords = [
|
18 |
+
"Astrophysics", "Cosmology", "photometric redshifts", "Machine learning", "Domain adaptation",
|
19 |
+
]
|
20 |
+
requires-python = ">= 3.10"
|
21 |
+
dependencies = [
|
22 |
+
"numpy",
|
23 |
+
"scipy",
|
24 |
+
"pandas",
|
25 |
+
"matplotlib",
|
26 |
+
"torch"
|
27 |
+
]
|
28 |
+
|
29 |
+
classifiers = [
|
30 |
+
"Development Status :: 5 - Production/Stable",
|
31 |
+
"Intended Audience :: Science/Research",
|
32 |
+
"Topic :: Scientific :: Cosmology/Astrophysics",
|
33 |
+
"Programming Language :: Python :: 3",
|
34 |
+
"License :: OSI Approved :: MIT License",
|
35 |
+
"Operating System :: OS Independent",
|
36 |
+
"Programming Language :: Python :: 3.10",
|
37 |
+
"Programming Language :: Python :: 3.11",
|
38 |
+
]
|
39 |
+
|
40 |
+
[project.optional-dependencies]
|
41 |
+
jupyter = [
|
42 |
+
"jupyter",
|
43 |
+
"jupytext",
|
44 |
+
]
|
45 |
+
test = [
|
46 |
+
"pytest",
|
47 |
+
]
|
48 |
+
|
49 |
+
[tool.setuptools.packages.find]
|
50 |
+
include = ["temps","temps.*"]
|
51 |
+
namespaces = false
|
52 |
+
|
53 |
+
|
54 |
+
[project.urls]
|
55 |
+
Homepage="https://github.com/lauracabayol/TEMPS"
|
56 |
+
Repository="https://github.com/lauracabayol/TEMPS.git"
|
57 |
+
Issues="https://github.com/lauracabayol/TEMPS/issues"
|