mirror of
https://github.com/KoboldAI/KoboldAI-Client.git
synced 2025-06-05 21:59:24 +02:00
Corrected requests import location for aidg.club support
This commit is contained in:
@ -9,6 +9,7 @@ from os import path, getcwd
|
||||
import tkinter as tk
|
||||
from tkinter import messagebox
|
||||
import json
|
||||
import requests
|
||||
|
||||
# KoboldAI
|
||||
import fileops
|
||||
@ -239,8 +240,6 @@ if(not vars.model in ["InferKit", "Colab"]):
|
||||
|
||||
print("{0}OK! {1} pipeline created!{2}".format(colors.GREEN, vars.model, colors.END))
|
||||
else:
|
||||
# Import requests library for HTTPS calls
|
||||
import requests
|
||||
# If we're running Colab, we still need a tokenizer.
|
||||
if(vars.model == "Colab"):
|
||||
from transformers import GPT2Tokenizer
|
||||
|
Reference in New Issue
Block a user