Spaces:
Sleeping
Sleeping
File size: 820 Bytes
c44d252 1a99bf1 c44d252 74e4c5d c44d252 74e4c5d 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 |
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= getRepoInformation,
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",
)
return search.launch()
ressurectingFrontend()
|