Dhruv's picture
WIP: init
c44d252
raw
history blame
826 Bytes
import gradio as gr
from gradio import TabbedInterface
from gh_api_info import GithubRepoAccess
from transformers import AutoModelForCausalLM, AutoTokenizer
import requests
from dotenv import dotenv_values
def getRepoInformation(input_queries):
config = dotenv_values(".env")
obj = GithubRepoAccess(config["GITHUB_TOKEN"])
repo = obj.getRepo(input_queries)
return repo
def ressurectingFrontend():
search = gr.Interface(
fn= searchGithub,
inputs= gr.inputs.Textbox(lines=1, label="Search"),
outputs= gr.outputs.Textbox(label="Output"),
title="Search Github",
description="build and ressurect old github inputs",
article="follow the link to github repo and our submission in bioML",
)
if __name__ == "__main__":
ressurectingFrontend.launch()