Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -3,10 +3,10 @@ __all__ = ['block', 'make_clickable_model', 'make_clickable_user', 'get_submissi
|
|
3 |
|
4 |
import gradio as gr
|
5 |
import pandas as pd
|
6 |
-
from huggingface_hub import HfApi,
|
7 |
|
8 |
def is_duplicated(space_id:str)->None:
|
9 |
-
card = RepoCard.load(space_id, repo_type="space")
|
10 |
return getattr(card.data, "duplicated_from", None) is not None
|
11 |
|
12 |
|
|
|
3 |
|
4 |
import gradio as gr
|
5 |
import pandas as pd
|
6 |
+
from huggingface_hub import HfApi, repocard
|
7 |
|
8 |
def is_duplicated(space_id:str)->None:
|
9 |
+
card = repocard.RepoCard.load(space_id, repo_type="space")
|
10 |
return getattr(card.data, "duplicated_from", None) is not None
|
11 |
|
12 |
|