Spaces:
Sleeping
Sleeping
import logging | |
from app import launch_gradio_app | |
from scripts.helper import load_config | |
from scripts.download_files import download_file, get_file_list | |
def main(): | |
# Load configuration | |
config = load_config() | |
logging.info(f"Model: {config['model_name']}") | |
logging.info(f"Noise Rate: {config['noise_rate']}") | |
logging.info(f"Passage Number: {config['passage_num']}") | |
logging.info(f"Number of Queries: {config['num_queries']}") | |
logging.info(f"File extension: {config['output_file_extension']}") | |
# Download files from the GitHub repository | |
files = get_file_list() | |
for file in files: | |
download_file(file) | |
launch_gradio_app(config) | |
if __name__ == "__main__": | |
main() | |