Spaces:
Running
Running
feifeinoban
commited on
Commit
·
9303632
1
Parent(s):
e75b262
Fix image path for Gradio rendering
Browse files
app.py
CHANGED
|
@@ -1,7 +1,6 @@
|
|
| 1 |
import gradio as gr
|
| 2 |
import os
|
| 3 |
|
| 4 |
-
os.environ["GRADIO_STATIC_ROOT"] = os.path.abspath(".")
|
| 5 |
|
| 6 |
def load_markdown():
|
| 7 |
with open("README.md", "r", encoding="utf-8") as f:
|
|
@@ -18,4 +17,4 @@ def load_markdown():
|
|
| 18 |
with gr.Blocks() as demo:
|
| 19 |
gr.Markdown(load_markdown())
|
| 20 |
|
| 21 |
-
demo.launch()
|
|
|
|
| 1 |
import gradio as gr
|
| 2 |
import os
|
| 3 |
|
|
|
|
| 4 |
|
| 5 |
def load_markdown():
|
| 6 |
with open("README.md", "r", encoding="utf-8") as f:
|
|
|
|
| 17 |
with gr.Blocks() as demo:
|
| 18 |
gr.Markdown(load_markdown())
|
| 19 |
|
| 20 |
+
demo.launch(allowed_paths=['./'])
|