run time
Browse files
app.py
CHANGED
@@ -14,7 +14,7 @@ import logging
|
|
14 |
#logging.basicConfig(level=logging.DEBUG)
|
15 |
print("Loading model...")
|
16 |
fl, fl_ft = model_init(hack=False)
|
17 |
-
@spaces.GPU(duration=
|
18 |
def process_image(input_image:Image, meter_type:str):
|
19 |
if meter_type == "方形儀表":
|
20 |
value, img = read_meter_rect(input_image, fl, fl_ft)
|
|
|
14 |
#logging.basicConfig(level=logging.DEBUG)
|
15 |
print("Loading model...")
|
16 |
fl, fl_ft = model_init(hack=False)
|
17 |
+
@spaces.GPU(duration=60)
|
18 |
def process_image(input_image:Image, meter_type:str):
|
19 |
if meter_type == "方形儀表":
|
20 |
value, img = read_meter_rect(input_image, fl, fl_ft)
|