Unverified Commit d3f6736e authored by Xiaomeng Zhao's avatar Xiaomeng Zhao Committed by GitHub
Browse files

Update _config_endpoint.py

parent 07b4cbc0
......@@ -15,7 +15,8 @@ def config_endpoint():
"""
os.environ.setdefault('MINERU_MODEL_SOURCE', 'huggingface')
model_list_url = f'https://huggingface.co/models'
model_list_url = f"https://huggingface.co/models"
modelscope_url = f"https://modelscope.cn/models"
# Use a specific check for the Hugging Face source
if os.environ['MINERU_MODEL_SOURCE'] == 'huggingface':
......@@ -56,4 +57,4 @@ def config_endpoint():
return False
if __name__ == '__main__':
print(config_endpoint())
\ No newline at end of file
print(config_endpoint())
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment