Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -1,11 +1,11 @@
|
|
1 |
import gradio as gr
|
2 |
|
3 |
from pathlib import Path
|
|
|
4 |
|
5 |
-
|
6 |
-
README_PATH = Path(__file__).parent / "README.md"
|
7 |
|
8 |
with gr.Blocks() as demo:
|
9 |
-
gr.Markdown(
|
10 |
|
11 |
demo.launch()
|
|
|
1 |
import gradio as gr
|
2 |
|
3 |
from pathlib import Path
|
4 |
+
from huggingface_hub import ModelCard
|
5 |
|
6 |
+
modelcard = ModelCard.load(Path(__file__).parent / "README.md")
|
|
|
7 |
|
8 |
with gr.Blocks() as demo:
|
9 |
+
gr.Markdown(modelcard.text)
|
10 |
|
11 |
demo.launch()
|