Spaces:
Sleeping
Sleeping
Update main.py
Browse files
main.py
CHANGED
|
@@ -21,6 +21,8 @@ from dotenv import load_dotenv
|
|
| 21 |
import sys
|
| 22 |
import io
|
| 23 |
|
|
|
|
|
|
|
| 24 |
# Ensure UTF-8 stdout on Windows
|
| 25 |
if sys.stdout and hasattr(sys.stdout, 'buffer'):
|
| 26 |
sys.stdout = io.TextIOWrapper(sys.stdout.buffer, encoding='utf-8', errors='replace')
|
|
|
|
| 21 |
import sys
|
| 22 |
import io
|
| 23 |
|
| 24 |
+
os.environ["USE_TF"] = "0"
|
| 25 |
+
os.environ["USE_TORCH"] = "1"
|
| 26 |
# Ensure UTF-8 stdout on Windows
|
| 27 |
if sys.stdout and hasattr(sys.stdout, 'buffer'):
|
| 28 |
sys.stdout = io.TextIOWrapper(sys.stdout.buffer, encoding='utf-8', errors='replace')
|