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
|
import tkinter as tk
|
||||||
from tkinter import messagebox
|
from tkinter import messagebox
|
||||||
import json
|
import json
|
||||||
|
import requests
|
||||||
|
|
||||||
# KoboldAI
|
# KoboldAI
|
||||||
import fileops
|
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))
|
print("{0}OK! {1} pipeline created!{2}".format(colors.GREEN, vars.model, colors.END))
|
||||||
else:
|
else:
|
||||||
# Import requests library for HTTPS calls
|
|
||||||
import requests
|
|
||||||
# If we're running Colab, we still need a tokenizer.
|
# If we're running Colab, we still need a tokenizer.
|
||||||
if(vars.model == "Colab"):
|
if(vars.model == "Colab"):
|
||||||
from transformers import GPT2Tokenizer
|
from transformers import GPT2Tokenizer
|
||||||
|
Reference in New Issue
Block a user