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.
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
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/' |
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
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(): |
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
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.
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
# 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: "/" |