Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -20,7 +20,7 @@ use_api = False
|
|
20 |
def switch_mode():
|
21 |
global use_api
|
22 |
use_api = not use_api
|
23 |
-
return "Using API" if use_api else "Using Local Model"
|
24 |
|
25 |
def extract_text(image, mode_indicator):
|
26 |
# Convert image to PNG if it's not already
|
|
|
20 |
def switch_mode():
|
21 |
global use_api
|
22 |
use_api = not use_api
|
23 |
+
return "Using API" if use_api else "Using Local Model (Slow unless duplicated and run on GPU"
|
24 |
|
25 |
def extract_text(image, mode_indicator):
|
26 |
# Convert image to PNG if it's not already
|