Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -1,8 +1,19 @@
|
|
| 1 |
# import gradio as gr
|
| 2 |
# app = gr.Interface.load('hubsnippetai/jupyterlab').launch()
|
|
|
|
|
|
|
|
|
|
| 3 |
import os
|
| 4 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 5 |
|
| 6 |
-
from gradio_client import Client
|
| 7 |
|
| 8 |
-
client = Client("hubsnippetai/medapp", hf_token=secret)
|
|
|
|
| 1 |
# import gradio as gr
|
| 2 |
# app = gr.Interface.load('hubsnippetai/jupyterlab').launch()
|
| 3 |
+
#import os
|
| 4 |
+
#secret = os.getenv('huggingfacesecret')
|
| 5 |
+
|
| 6 |
import os
|
| 7 |
+
from huggingface_hub import HfApi
|
| 8 |
+
|
| 9 |
+
#token = os.getenv('HF_API_TOKEN')
|
| 10 |
+
api = HfApi()
|
| 11 |
+
api.login(token=secret)
|
| 12 |
+
|
| 13 |
+
# Access your private space or model
|
| 14 |
+
private_model = api.model_info("hubsnippetai/medapp")
|
| 15 |
+
|
| 16 |
|
| 17 |
+
#from gradio_client import Client
|
| 18 |
|
| 19 |
+
#client = Client("hubsnippetai/medapp", hf_token=secret)
|