Skip to content

Instantly share code, notes, and snippets.

View quicksilver0's full-sized avatar
🐢
Am I super slow or super fast

quicksilver quicksilver0

🐢
Am I super slow or super fast
View GitHub Profile
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
from aiogram import F
import asyncio
from aiogram.types import Message
from aiogram import Bot, Dispatcher, types
from aiogram.filters.command import Command
import json
import requests
import configparser
url = 'http://127.0.0.1:5000/'
from flask import Flask, jsonify, render_template, request, json
from ctransformers import AutoModelForCausalLM
app = Flask(__name__)
app.config['SECRET_KEY'] = 'this_is_bad_secret_key'
limit_input_tokens=4096
model_path = 'model-q4_K.gguf'
# Function to initialize the model
def initialize_model():
from flask import Flask
app = Flask(__name__)
app.config['SECRET_KEY'] = 'this_is_bad_secret_key'
@app.route('/')
def index():
return 'Hello!'
if __name__ == "__main__":
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@quicksilver0
quicksilver0 / _config.yml
Last active April 16, 2018 22:35
_config.yml for jekyll template
# Site settings
title: Airspace
subtitle: "A free HTML5 agency template"
url: "https://justanother-timetraveller.github.io" # the base hostname & protocol for your site
# baseurl: "/the/subpath/of/your/site" # Set this value to "" if you want your site to be root
baseurl: "/"