cyrilw commited on
Commit
d7160db
·
1 Parent(s): 96ccfb5

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +6 -2
app.py CHANGED
@@ -11,5 +11,9 @@ def sepia(image):
11
  sepia_img /= sepia_img.max()
12
  return sepia_img
13
 
14
- # Write 1 line of Python to create a simple GUI
15
- gr.Interface(fn=sepia, inputs="image", outputs="image").launch()
 
 
 
 
 
11
  sepia_img /= sepia_img.max()
12
  return sepia_img
13
 
14
+
15
+ def main():
16
+ gr.Interface(fn=sepia, inputs="image", outputs="image").launch()
17
+
18
+ if __name__ == "__main__":
19
+ main()