Ajay Harikumar commited on
Commit
427b4a2
·
1 Parent(s): e71af68

Convert app to share

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -7,7 +7,7 @@ from datetime import datetime
7
 
8
  model = hub.Module(name='deoldify')
9
  # NOTE: Max is 45 with 11GB video cards. 35 is a good default
10
- render_factor=30
11
 
12
 
13
  def colorize_image(image):
@@ -29,7 +29,7 @@ def create_interface():
29
  colorize_output = gr.Image(type="file")
30
  download_colorize_button = gr.outputs.File(label="Download colorized image!")
31
  colorize_button.click(colorize_image, inputs=colorize_input, outputs=colorize_output)
32
- enhancer.launch()
33
 
34
  def run_code():
35
  create_interface()
 
7
 
8
  model = hub.Module(name='deoldify')
9
  # NOTE: Max is 45 with 11GB video cards. 35 is a good default
10
+ render_factor=35
11
 
12
 
13
  def colorize_image(image):
 
29
  colorize_output = gr.Image(type="file")
30
  download_colorize_button = gr.outputs.File(label="Download colorized image!")
31
  colorize_button.click(colorize_image, inputs=colorize_input, outputs=colorize_output)
32
+ enhancer.launch(share=True)
33
 
34
  def run_code():
35
  create_interface()