Lisandro commited on
Commit
550b876
1 Parent(s): 10cd5a3

feat: Add prediction functionality to app.py

Browse files
Files changed (1) hide show
  1. app.py +14 -1
app.py CHANGED
@@ -1,4 +1,17 @@
1
  from gradio_client import Client, handle_file
2
  tile_upscaler_url = "gokaygokay/TileUpscalerV2"
3
 
4
- client_tile_upscaler = Client(tile_upscaler_url)
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
  from gradio_client import Client, handle_file
2
  tile_upscaler_url = "gokaygokay/TileUpscalerV2"
3
 
4
+ client_tile_upscaler = Client(tile_upscaler_url)
5
+
6
+ result = client_tile_upscaler.predict(
7
+ param_0=handle_file('https://raw.githubusercontent.com/gradio-app/gradio/main/test/test_files/bus.png'),
8
+ param_1=1024,
9
+ param_2=20,
10
+ param_3=0.2,
11
+ param_4=0,
12
+ param_5=6,
13
+ param_6=0.75,
14
+ param_7="DDIM",
15
+ api_name="/wrapper"
16
+ )
17
+ print(result)