ovi054 commited on
Commit
7f8918e
·
verified ·
1 Parent(s): 6bb6da9

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -3
app.py CHANGED
@@ -4,8 +4,7 @@ from gradio_client import Client, handle_file
4
  def upscale_image(image):
5
  client = Client("doevent/Face-Real-ESRGAN")
6
  result = client.predict(
7
- # image=handle_file(image), # Directly pass the image
8
- image,
9
  size="4x",
10
  api_name="/predict"
11
  )
@@ -14,7 +13,7 @@ def upscale_image(image):
14
 
15
 
16
  app = gr.Interface(upscale_image,
17
- inputs = [gr.Image(label="Upload Image")],
18
  outputs = [gr.Image(label="Upscaled Image")])
19
 
20
  app.launch(debug=True)
 
4
  def upscale_image(image):
5
  client = Client("doevent/Face-Real-ESRGAN")
6
  result = client.predict(
7
+ image=handle_file(image), # Directly pass the image
 
8
  size="4x",
9
  api_name="/predict"
10
  )
 
13
 
14
 
15
  app = gr.Interface(upscale_image,
16
+ inputs = [gr.Image(label="Upload Image", type="filepath")],
17
  outputs = [gr.Image(label="Upscaled Image")])
18
 
19
  app.launch(debug=True)