Hugging Face
Models
Datasets
Spaces
Posts
Docs
Enterprise
Pricing
Log In
Sign Up
Spaces:
Duplicated from
OpenDILabCommunity/LLMRiddlesChatGLMCN
NLPark
/
Riddles2
like
0
Sleeping
App
Files
Files
Community
Fetching metadata from the HF Docker repository...
f663af1
Riddles2
/
llmriddles
/
llms
/
base.py
zjowowen
init repo
4231e0d
over 1 year ago
raw
Copy download link
history
blame
Safe
213 Bytes
from
typing
import
Callable
,
Dict
_LLMS:
Dict
[
str
,
Callable
] = {}
def
register_llm
(
name:
str
, llm_ask_fn:
Callable
):
_LLMS[name] = llm_ask_fn
def
get_llm_fn
(
name:
str
) ->
Callable
:
return
_LLMS[name]