Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -43,10 +43,12 @@ config.chunk_size = 2048
|
|
43 |
config.flavor_intermediate_count = 512
|
44 |
config.blip_num_beams = 64
|
45 |
|
46 |
-
|
47 |
|
48 |
@spaces.GPU
|
49 |
def inference(image, mode, best_max_flavors):
|
|
|
|
|
50 |
image = image.convert('RGB')
|
51 |
if mode == 'best':
|
52 |
|
|
|
43 |
config.flavor_intermediate_count = 512
|
44 |
config.blip_num_beams = 64
|
45 |
|
46 |
+
|
47 |
|
48 |
@spaces.GPU
|
49 |
def inference(image, mode, best_max_flavors):
|
50 |
+
ci = Interrogator(config)
|
51 |
+
|
52 |
image = image.convert('RGB')
|
53 |
if mode == 'best':
|
54 |
|