- https://jaglinux.github.io
- in/jagadish-krishnamoorthy
- @JAGsPOSTs
- https://github.com/jagadish-amd
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Download this code and on your terminal, type the below commands. This is only required first time. | |
# pip3 install openai | |
# export DeepSeek_API_Key=<your DeepSeek API Key> | |
# Then run the below command to ask questions to deepseek model | |
# python3 deepseek.py | |
import os, sys | |
from openai import OpenAI |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
opcodes = { | |
0x00: 'STOP', | |
0x01: 'ADD', | |
0x02: 'MUL', | |
0x03: 'SUB', | |
0x04: 'DIV', | |
0x05: 'SDIV', | |
0x06: 'MOD', | |
0x07: 'SMOD', | |
0x08: 'ADDMOD', |