Spaces:
Running
Running
Add Daggr workflow app and requirements
Browse filesCo-authored-by: Cursor <cursoragent@cursor.com>
- app.py +15 -0
- requirements.txt +1 -0
app.py
ADDED
|
@@ -0,0 +1,15 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
import gradio as gr
|
| 2 |
+
from daggr import GradioNode, Graph
|
| 3 |
+
|
| 4 |
+
# Step 1: Background Removal (Example)
|
| 5 |
+
bg_remover = GradioNode(
|
| 6 |
+
"merve/background-removal",
|
| 7 |
+
api_name="/image",
|
| 8 |
+
run_locally=True,
|
| 9 |
+
inputs={"image": gr.Image()},
|
| 10 |
+
outputs={"final_image": gr.Image(label="Processed Image")},
|
| 11 |
+
)
|
| 12 |
+
|
| 13 |
+
# Add more nodes here (Video Gen, Watermark Remover, etc.) as needed
|
| 14 |
+
graph = Graph(name="Imageat Workflow", nodes=[bg_remover])
|
| 15 |
+
graph.launch()
|
requirements.txt
ADDED
|
@@ -0,0 +1 @@
|
|
|
|
|
|
|
| 1 |
+
daggr
|