File size: 349 Bytes
16a6b64
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
import gradio as gr
from huggingface_hub import hf_hub_download

import os
import sys

app_path = hf_hub_download(repo_id=os.environ["HF_APP_REPO_ID"],
                           filename="jlpr_app.py",
                           token=os.environ["HF_TOKEN"])

sys.path.append(os.path.split(app_path)[0])

import jlpr_app  # noqa

jlpr_app.launch()