성원 commited on
Commit
1b0282a
1 Parent(s): c767bb5
Files changed (1) hide show
  1. app.py +13 -1
app.py CHANGED
@@ -101,10 +101,22 @@ def sepia(input_img):
101
  fig = draw_plot(pred_img, seg)
102
  return fig
103
 
 
 
 
 
 
 
 
 
 
 
 
 
104
  demo = gr.Interface(fn=sepia,
105
  inputs=gr.Image(shape=(400, 600)),
106
  outputs=['plot'],
107
- example=["ADE_val_00000001.jpeg", "ADE_val_00001159.jpg", "ADE_val_00001248.jpg", "ADE_val_00001472.jpg"],
108
  allow_flagging='never')
109
 
110
 
 
101
  fig = draw_plot(pred_img, seg)
102
  return fig
103
 
104
+
105
+ def sepia(input_img):
106
+ # sepia 필터 적용 로직
107
+ # ...
108
+
109
+ return result
110
+
111
+ def handle_flagging(feedback):
112
+ flagged_result = feedback['result']
113
+ print(f"Flagged result: {flagged_result}")
114
+
115
+
116
  demo = gr.Interface(fn=sepia,
117
  inputs=gr.Image(shape=(400, 600)),
118
  outputs=['plot'],
119
+ examples=["ADE_val_00000001.jpeg", "ADE_val_00001159.jpg", "ADE_val_00001248.jpg", "ADE_val_00001472.jpg"],
120
  allow_flagging='never')
121
 
122