incendies Cursor commited on
Commit
07622a9
·
1 Parent(s): 41597ec

Add Daggr workflow app and requirements

Browse files

Co-authored-by: Cursor <cursoragent@cursor.com>

Files changed (2) hide show
  1. app.py +15 -0
  2. 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