File size: 243 Bytes
bca5262
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
import os
import gradio as gr
import copy
import llama_cpp
from llama_cpp import Llama
import random
from huggingface_hub import hf_hub_download  
import time

def list_models(name):
    dir = os.getcwd()
    return os.listdir(f"{dir}\models")