Spaces:
Running
Running
Haaris
commited on
Commit
·
6125ede
1
Parent(s):
a0efa6a
Added workflow pipeline
Browse filesmade changes in CI pipeline
made changes in CI pipeline
Create main-ci.yml
added initial project setup
- .github/workflows/ci.yml +25 -0
- .python-version +1 -0
- LICENSE +1 -1
- app.py +17 -0
- pyproject.toml +9 -0
- requirements.txt +1 -0
- uv.lock +0 -0
.github/workflows/ci.yml
ADDED
|
@@ -0,0 +1,25 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
name: Sync with Hugging Face Repo
|
| 2 |
+
|
| 3 |
+
on:
|
| 4 |
+
push:
|
| 5 |
+
branches:
|
| 6 |
+
[main]
|
| 7 |
+
workflow_dispatch:
|
| 8 |
+
|
| 9 |
+
jobs:
|
| 10 |
+
sync:
|
| 11 |
+
runs-on: ubuntu-latest
|
| 12 |
+
steps:
|
| 13 |
+
- name: Checkout
|
| 14 |
+
uses: actions/checkout@v4
|
| 15 |
+
with:
|
| 16 |
+
fetch-depth: 0
|
| 17 |
+
|
| 18 |
+
- name: Sync with Hugging Face
|
| 19 |
+
uses: nateraw/[email protected]
|
| 20 |
+
with:
|
| 21 |
+
github_repo_id: yas1nsyed/mulltrenner9000
|
| 22 |
+
huggingface_repo_id: Yas1n/mulltrenner9000
|
| 23 |
+
repo_type: space
|
| 24 |
+
space_sdk: gradio
|
| 25 |
+
hf_token: ${{ secrets.HF_TOKEN }}
|
.python-version
ADDED
|
@@ -0,0 +1 @@
|
|
|
|
|
|
|
| 1 |
+
3.11
|
LICENSE
CHANGED
|
@@ -1,6 +1,6 @@
|
|
| 1 |
MIT License
|
| 2 |
|
| 3 |
-
Copyright (c) 2025
|
| 4 |
|
| 5 |
Permission is hereby granted, free of charge, to any person obtaining a copy
|
| 6 |
of this software and associated documentation files (the "Software"), to deal
|
|
|
|
| 1 |
MIT License
|
| 2 |
|
| 3 |
+
Copyright (c) 2025 Yas1nsyed
|
| 4 |
|
| 5 |
Permission is hereby granted, free of charge, to any person obtaining a copy
|
| 6 |
of this software and associated documentation files (the "Software"), to deal
|
app.py
ADDED
|
@@ -0,0 +1,17 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
import gradio as gr
|
| 2 |
+
|
| 3 |
+
def main():
|
| 4 |
+
with gr.Blocks() as demo:
|
| 5 |
+
gr.Markdown("# 🗑️ Mülltrenner9000 🤖")
|
| 6 |
+
gr.Markdown("🗑️ This app classifies and segments trash for proper recycling. 🤖")
|
| 7 |
+
|
| 8 |
+
|
| 9 |
+
with gr.Row():
|
| 10 |
+
input_image = gr.Image(type="numpy", label="Upload Image")
|
| 11 |
+
output_image = gr.Image(type="numpy", label="Segmented Output")
|
| 12 |
+
# input_image.change(fn=predict, inputs=input_image, outputs=output_image)
|
| 13 |
+
demo.launch()
|
| 14 |
+
|
| 15 |
+
|
| 16 |
+
if __name__ == "__main__":
|
| 17 |
+
main()
|
pyproject.toml
ADDED
|
@@ -0,0 +1,9 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
[project]
|
| 2 |
+
name = "mulltrenner9000"
|
| 3 |
+
version = "0.1.0"
|
| 4 |
+
description = "Add your description here"
|
| 5 |
+
readme = "README.md"
|
| 6 |
+
requires-python = ">=3.11"
|
| 7 |
+
dependencies = [
|
| 8 |
+
"gradio>=5.34.2",
|
| 9 |
+
]
|
requirements.txt
ADDED
|
@@ -0,0 +1 @@
|
|
|
|
|
|
|
| 1 |
+
gradio==5.34.2
|
uv.lock
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|