Commit
·
a8e8336
1
Parent(s):
f94b10a
Update app.py
Browse files
app.py
CHANGED
@@ -4,7 +4,7 @@ from huggingface_hub import snapshot_download
|
|
4 |
|
5 |
snapshot_download("tiiuae/falcon-7b")
|
6 |
|
7 |
-
DATA_PATH = Path("./")
|
8 |
|
9 |
def get_storage():
|
10 |
files = [
|
@@ -33,4 +33,4 @@ with gr.Blocks() as app:
|
|
33 |
btn.click(get_storage, inputs=None, outputs=[files, storage], postprocess=False)
|
34 |
|
35 |
# Files that you explicitly allow on allowed_paths
|
36 |
-
app.launch(allowed_paths=["./"])
|
|
|
4 |
|
5 |
snapshot_download("tiiuae/falcon-7b")
|
6 |
|
7 |
+
DATA_PATH = Path("./data")
|
8 |
|
9 |
def get_storage():
|
10 |
files = [
|
|
|
33 |
btn.click(get_storage, inputs=None, outputs=[files, storage], postprocess=False)
|
34 |
|
35 |
# Files that you explicitly allow on allowed_paths
|
36 |
+
app.launch(allowed_paths=["./data"])
|