Update url defaults

add-txt2txt-models
Guillermo Rodriguez 2023-05-29 21:00:47 -03:00
parent 33d2ca281b
commit 731a64494f
No known key found for this signature in database
GPG Key ID: EC3AB66D5D83B392
2 changed files with 15 additions and 15 deletions

View File

@ -100,7 +100,7 @@ def download():
@click.option( @click.option(
'--key', '-k', default=None) '--key', '-k', default=None)
@click.option( @click.option(
'--node-url', '-n', default='http://skynet.ancap.tech') '--node-url', '-n', default='https://skynet.ancap.tech')
@click.option( @click.option(
'--reward', '-r', default='20.0000 GPU') '--reward', '-r', default='20.0000 GPU')
@click.option('--algo', '-a', default='midj') @click.option('--algo', '-a', default='midj')
@ -143,7 +143,7 @@ def enqueue(
@skynet.command() @skynet.command()
@click.option( @click.option(
'--node-url', '-n', default='http://skynet.ancap.tech') '--node-url', '-n', default='https://skynet.ancap.tech')
def queue(node_url: str): def queue(node_url: str):
resp = requests.post( resp = requests.post(
f'{node_url}/v1/chain/get_table_rows', f'{node_url}/v1/chain/get_table_rows',
@ -158,7 +158,7 @@ def queue(node_url: str):
@skynet.command() @skynet.command()
@click.option( @click.option(
'--node-url', '-n', default='http://skynet.ancap.tech') '--node-url', '-n', default='https://skynet.ancap.tech')
@click.argument('request-id') @click.argument('request-id')
def status(node_url: str, request_id: int): def status(node_url: str, request_id: int):
resp = requests.post( resp = requests.post(
@ -180,7 +180,7 @@ def status(node_url: str, request_id: int):
@click.option( @click.option(
'--key', '-k', default=None) '--key', '-k', default=None)
@click.option( @click.option(
'--node-url', '-n', default='http://skynet.ancap.tech') '--node-url', '-n', default='https://skynet.ancap.tech')
@click.argument('request-id') @click.argument('request-id')
def dequeue( def dequeue(
account: str, account: str,
@ -207,7 +207,7 @@ def dequeue(
@click.option( @click.option(
'--key', '-k', default=None) '--key', '-k', default=None)
@click.option( @click.option(
'--node-url', '-n', default='http://skynet.ancap.tech') '--node-url', '-n', default='https://skynet.ancap.tech')
@click.option( @click.option(
'--verifications', '-v', default=1) '--verifications', '-v', default=1)
@click.option( @click.option(
@ -241,7 +241,7 @@ def config(
@click.option( @click.option(
'--key', '-k', default=None) '--key', '-k', default=None)
@click.option( @click.option(
'--node-url', '-n', default='http://skynet.ancap.tech') '--node-url', '-n', default='https://skynet.ancap.tech')
@click.argument('quantity') @click.argument('quantity')
def deposit( def deposit(
account: str, account: str,
@ -286,11 +286,11 @@ def nodeos():
@click.option( @click.option(
'--auto-withdraw', '-w', default=True) '--auto-withdraw', '-w', default=True)
@click.option( @click.option(
'--node-url', '-n', default='http://skynet.ancap.tech') '--node-url', '-n', default='https://skynet.ancap.tech')
@click.option( @click.option(
'--ipfs-url', '-n', default='/ip4/169.197.140.154/tcp/4001/p2p/12D3KooWKHKPFuqJPeqYgtUJtfZTHvEArRX2qvThYBrjuTuPg2Nx') '--ipfs-url', '-n', default='/ip4/169.197.140.154/udp/4001/quic/p2p/12D3KooWKWogLFNEcNNMKnzU7Snrnuj84RZdMBg3sLiQSQc51oEv')
@click.option( @click.option(
'--algos', '-A', default=json.dumps(['midj'])) '--algos', '-A', default=json.dumps(['midj', 'ink']))
def dgpu( def dgpu(
loglevel: str, loglevel: str,
account: str, account: str,
@ -343,11 +343,11 @@ def dgpu(
@click.option( @click.option(
'--key', '-k', default=None) '--key', '-k', default=None)
@click.option( @click.option(
'--hyperion-url', '-n', default='http://test1.us.telos.net:42001') '--hyperion-url', '-n', default='https://skynet.ancap.tech')
@click.option( @click.option(
'--node-url', '-n', default='http://skynet.ancap.tech') '--node-url', '-n', default='https://skynet.ancap.tech')
@click.option( @click.option(
'--ipfs-url', '-n', default='/ip4/169.197.142.4/tcp/4001/p2p/12D3KooWKHKPFuqJPeqYgtUJtfZTHvEArRX2qvThYBrjuTuPg2Nx') '--ipfs-url', '-n', default='/ip4/169.197.140.154/udp/4001/quic/p2p/12D3KooWKWogLFNEcNNMKnzU7Snrnuj84RZdMBg3sLiQSQc51oEv')
@click.option( @click.option(
'--db-host', '-h', default='localhost:5432') '--db-host', '-h', default='localhost:5432')
@click.option( @click.option(

View File

@ -86,11 +86,11 @@ def generate_reply_caption(
): ):
ipfs_link = hlink( ipfs_link = hlink(
'Get your image on IPFS', 'Get your image on IPFS',
f'http://test1.us.telos.net:8080/ipfs/{ipfs_hash}/image.png' f'https://ipfs.ancap.tech/ipfs/{ipfs_hash}/image.png'
) )
explorer_link = hlink( explorer_link = hlink(
'SKYNET Transaction Explorer', 'SKYNET Transaction Explorer',
f'http://test1.us.telos.net:42001/v2/explore/transaction/{tx_hash}' f'https://skynet.ancap.tech/v2/explore/transaction/{tx_hash}'
) )
meta_info = prepare_metainfo_caption(tguser, worker, reward, params) meta_info = prepare_metainfo_caption(tguser, worker, reward, params)
@ -521,7 +521,7 @@ async def run_skynet_telegram(
async def user_stats(message): async def user_stats(message):
user = message.from_user.id user = message.from_user.id
await db_call('get_or_create_user', user.id) await db_call('get_or_create_user', user)
generated, joined, role = await db_call('get_user_stats', user) generated, joined, role = await db_call('get_user_stats', user)
stats_str = f'generated: {generated}\n' stats_str = f'generated: {generated}\n'