bot-test / app.py
SG-AI-TEAMM's picture
Update app.py
1e7e976 verified
raw
history blame contribute delete
708 Bytes
from huggingface_hub import hf_hub_download, snapshot_download
import pandas as pd
snapshot_download(
repo_id="SG-AI-TEAMM/pre-launch", repo_type="space", cache_dir="pre-launch"
)
utils_path = hf_hub_download(
repo_id="SG-AI-TEAMM/pre-launch", filename="utils/functions.py", repo_type="space"
)
app_path = hf_hub_download(
repo_id="SG-AI-TEAMM/pre-launch", filename="app.py", repo_type="space"
)
import importlib
spec = importlib.util.spec_from_file_location("*", utils_path)
foo = importlib.util.module_from_spec(spec)
spec.loader.exec_module(foo)
spec_app = importlib.util.spec_from_file_location("*", app_path)
app = importlib.util.module_from_spec(spec_app)
spec_app.loader.exec_module(app)