Spaces:
Build error
Build error
from pathlib import Path | |
import sys | |
import gradio as gr | |
def read_markdown(filepath): | |
with open(filepath, 'r') as file: | |
return file.read() | |
local_path = Path(sys.path[0]) | |
filepath = local_path / "README.md" | |
markdown_content = read_markdown(filepath) | |
with gr.Blocks() as demo: | |
gr.Markdown(markdown_content) | |
demo.launch() | |