File size: 826 Bytes
c44d252
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
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()