Spaces:
Running
Running
Chenglu-She
commited on
Commit
•
e6a6482
1
Parent(s):
d8ab90b
Upload folder using huggingface_hub
Browse files- README.md +2 -2
- app.py +1 -1
- src/.gitignore +2 -1
- src/demo/app.py +1 -1
README.md
CHANGED
@@ -2,8 +2,8 @@
|
|
2 |
---
|
3 |
tags: [gradio-custom-component,gradio-template-SimpleTextbox]
|
4 |
title: gradio_log V0.0.1
|
5 |
-
colorFrom:
|
6 |
-
colorTo:
|
7 |
sdk: docker
|
8 |
pinned: false
|
9 |
license: apache-2.0
|
|
|
2 |
---
|
3 |
tags: [gradio-custom-component,gradio-template-SimpleTextbox]
|
4 |
title: gradio_log V0.0.1
|
5 |
+
colorFrom: blue
|
6 |
+
colorTo: red
|
7 |
sdk: docker
|
8 |
pinned: false
|
9 |
license: apache-2.0
|
app.py
CHANGED
@@ -2,7 +2,7 @@ import gradio as gr
|
|
2 |
from gradio_log import Log
|
3 |
|
4 |
|
5 |
-
with open("
|
6 |
# write some random log to f, with colored and uncolored text
|
7 |
f.write(b"[INFO] Everything is fine.\n")
|
8 |
f.write(b"\x1b[34m[DEBUG] Debugging information.\x1b[0m\n")
|
|
|
2 |
from gradio_log import Log
|
3 |
|
4 |
|
5 |
+
with open("./test.log", "wb") as f:
|
6 |
# write some random log to f, with colored and uncolored text
|
7 |
f.write(b"[INFO] Everything is fine.\n")
|
8 |
f.write(b"\x1b[34m[DEBUG] Debugging information.\x1b[0m\n")
|
src/.gitignore
CHANGED
@@ -6,4 +6,5 @@ __pycache__/
|
|
6 |
*$py.class
|
7 |
__tmp/*
|
8 |
*.pyi
|
9 |
-
node_modules
|
|
|
|
6 |
*$py.class
|
7 |
__tmp/*
|
8 |
*.pyi
|
9 |
+
node_modules
|
10 |
+
./test.log
|
src/demo/app.py
CHANGED
@@ -2,7 +2,7 @@ import gradio as gr
|
|
2 |
from gradio_log import Log
|
3 |
|
4 |
|
5 |
-
with open("
|
6 |
# write some random log to f, with colored and uncolored text
|
7 |
f.write(b"[INFO] Everything is fine.\n")
|
8 |
f.write(b"\x1b[34m[DEBUG] Debugging information.\x1b[0m\n")
|
|
|
2 |
from gradio_log import Log
|
3 |
|
4 |
|
5 |
+
with open("./test.log", "wb") as f:
|
6 |
# write some random log to f, with colored and uncolored text
|
7 |
f.write(b"[INFO] Everything is fine.\n")
|
8 |
f.write(b"\x1b[34m[DEBUG] Debugging information.\x1b[0m\n")
|