medimage / app.py
hubsnippetai's picture
Update app.py
293bbdb verified
raw
history blame
468 Bytes
# import gradio as gr
# app = gr.Interface.load('hubsnippetai/jupyterlab').launch()
#import os
import os
from huggingface_hub import HfApi
secret = os.getenv('huggingfacesecret')
#token = os.getenv('HF_API_TOKEN')repo_id="hubsnippetai/medapp"
api = HfApi()
api.login(token=secret)
# Access your private space or model
private_model = api.model_info("hubsnippetai/medapp")
#from gradio_client import Client
#client = Client("hubsnippetai/medapp", hf_token=secret)