Spaces:
Sleeping
Sleeping
Victoria Oberascher
commited on
Commit
·
2d9c467
1
Parent(s):
ce4a7e9
remove input
Browse files
app.py
CHANGED
|
@@ -1,9 +1,18 @@
|
|
| 1 |
-
import
|
| 2 |
-
|
| 3 |
-
|
| 4 |
-
|
| 5 |
-
|
| 6 |
-
|
| 7 |
-
|
| 8 |
-
|
| 9 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
from pathlib import Path
|
| 2 |
+
import sys
|
| 3 |
+
import gradio as gr
|
| 4 |
+
|
| 5 |
+
|
| 6 |
+
def read_markdown(filepath):
|
| 7 |
+
with open(filepath, 'r') as file:
|
| 8 |
+
return file.read()
|
| 9 |
+
|
| 10 |
+
|
| 11 |
+
local_path = Path(sys.path[0])
|
| 12 |
+
filepath = local_path / "README.md"
|
| 13 |
+
markdown_content = read_markdown(filepath)
|
| 14 |
+
|
| 15 |
+
with gr.Blocks() as demo:
|
| 16 |
+
gr.Markdown(markdown_content)
|
| 17 |
+
|
| 18 |
+
demo.launch()
|