Update app.py
Browse files
app.py
CHANGED
|
@@ -28,6 +28,9 @@ for model in models:
|
|
| 28 |
def text_it(inputs, text_gen=text_gen):
|
| 29 |
return text_gen(inputs)
|
| 30 |
|
|
|
|
|
|
|
|
|
|
| 31 |
|
| 32 |
def set_model(current_model_index):
|
| 33 |
global current_model
|
|
|
|
| 28 |
def text_it(inputs, text_gen=text_gen):
|
| 29 |
return text_gen(inputs)
|
| 30 |
|
| 31 |
+
def load_image(image_path):
|
| 32 |
+
image = cv2.imread(image_path)
|
| 33 |
+
return image
|
| 34 |
|
| 35 |
def set_model(current_model_index):
|
| 36 |
global current_model
|