mirror of
https://github.com/vladmandic/automatic
synced 2026-09-03 19:40:47 +02:00
23 lines
516 B
Python
23 lines
516 B
Python
import os
|
|
import sys
|
|
|
|
|
|
if __name__ == '__main__':
|
|
sys.path.append(os.getcwd())
|
|
|
|
from modules.zluda_installer import find, load
|
|
load(find())
|
|
|
|
import torch
|
|
print(f'Python with ZLUDA {sys.version}')
|
|
print('Type "help", "copyright", "credits" or "license" for more information.')
|
|
|
|
while True:
|
|
print('>>> ', end='')
|
|
try:
|
|
exec(input(), {
|
|
'torch': torch,
|
|
})
|
|
except Exception as e:
|
|
print(f'{e.__class__.__name__}: {e}')
|