AskQ / app.py
mcbrs1's picture
Update app.py
ab9eb00
raw
history blame
497 Bytes
from __future__ import annotations
import openai
import gradio as gr
import os
import re
import numpy as np
import pandas as pd
import pickle
import tiktoken
from datasets import load_dataset
from git import Repo
openai.api_key = os.getenv("OPENAI_API_KEY")
PAT = os.getenv("PATKEY")
Repo.clone_from("https://mcbrs1a:"+PAT+"@github.com/mcbrs1a/AskQ.git", "A")
#import repo_directoryx.inside_code as inside_code
#print("https://mcbrs1a:"+PAT+"@github.com/mcbrs1a/AskQ.git")
import A.insidecode