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
@quicksilver0
quicksilver0 / open_powershell_here.md
Created July 7, 2024 22:07 — forked from davecan/open_powershell_here.md
How to enable "Open PowerShell Here" context menu in Windows 10
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
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__":
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.