Chenglu-She commited on
Commit
b238bcb
1 Parent(s): b49af9d

Upload folder using huggingface_hub

Browse files
README.md CHANGED
@@ -1,9 +1,9 @@
1
 
2
  ---
3
  tags: [gradio-custom-component,gradio-template-SimpleTextbox,log,gradio_log,gradio_log_component,gradio_print_log]
4
- title: gradio_log V0.0.2
5
- colorFrom: red
6
- colorTo: yellow
7
  sdk: docker
8
  pinned: false
9
  license: apache-2.0
 
1
 
2
  ---
3
  tags: [gradio-custom-component,gradio-template-SimpleTextbox,log,gradio_log,gradio_log_component,gradio_print_log]
4
+ title: gradio_log V0.0.3
5
+ colorFrom: green
6
+ colorTo: red
7
  sdk: docker
8
  pinned: false
9
  license: apache-2.0
__pycache__/app.cpython-311.pyc CHANGED
Binary files a/__pycache__/app.cpython-311.pyc and b/__pycache__/app.cpython-311.pyc differ
 
app.py CHANGED
@@ -1,7 +1,6 @@
1
  from pathlib import Path
2
  import logging
3
  import gradio as gr
4
- import tempfile
5
 
6
  from gradio_log import Log
7
 
 
1
  from pathlib import Path
2
  import logging
3
  import gradio as gr
 
4
 
5
  from gradio_log import Log
6
 
space.py CHANGED
@@ -41,7 +41,6 @@ pip install gradio_log
41
  from pathlib import Path
42
  import logging
43
  import gradio as gr
44
- import tempfile
45
 
46
  from gradio_log import Log
47
 
 
41
  from pathlib import Path
42
  import logging
43
  import gradio as gr
 
44
 
45
  from gradio_log import Log
46
 
src/README.md CHANGED
@@ -16,7 +16,6 @@ pip install gradio_log
16
  from pathlib import Path
17
  import logging
18
  import gradio as gr
19
- import tempfile
20
 
21
  from gradio_log import Log
22
 
 
16
  from pathlib import Path
17
  import logging
18
  import gradio as gr
 
19
 
20
  from gradio_log import Log
21
 
src/backend/gradio_log/log.py CHANGED
@@ -41,9 +41,7 @@ class Log(FormComponent):
41
  return file_size - len(last_lines) - 1
42
 
43
  def read_to_end(self) -> bytes:
44
- if self.current_pos is None:
45
- return None
46
- if self.stop_reading:
47
  return None
48
  self.io.seek(self.current_pos)
49
  b = self.io.read().decode()
 
41
  return file_size - len(last_lines) - 1
42
 
43
  def read_to_end(self) -> bytes:
44
+ if self.current_pos is None or self.stop_reading:
 
 
45
  return None
46
  self.io.seek(self.current_pos)
47
  b = self.io.read().decode()
src/backend/gradio_log/log.pyi CHANGED
@@ -157,9 +157,7 @@ class Log(FormComponent):
157
  return file_size - len(last_lines) - 1
158
 
159
  def read_to_end(self) -> bytes:
160
- if self.current_pos is None:
161
- return None
162
- if self.stop_reading:
163
  return None
164
  self.io.seek(self.current_pos)
165
  b = self.io.read().decode()
 
157
  return file_size - len(last_lines) - 1
158
 
159
  def read_to_end(self) -> bytes:
160
+ if self.current_pos is None or self.stop_reading:
 
 
161
  return None
162
  self.io.seek(self.current_pos)
163
  b = self.io.read().decode()
src/demo/app.py CHANGED
@@ -1,7 +1,6 @@
1
  from pathlib import Path
2
  import logging
3
  import gradio as gr
4
- import tempfile
5
 
6
  from gradio_log import Log
7
 
 
1
  from pathlib import Path
2
  import logging
3
  import gradio as gr
 
4
 
5
  from gradio_log import Log
6
 
src/demo/space.py CHANGED
@@ -41,7 +41,6 @@ pip install gradio_log
41
  from pathlib import Path
42
  import logging
43
  import gradio as gr
44
- import tempfile
45
 
46
  from gradio_log import Log
47
 
 
41
  from pathlib import Path
42
  import logging
43
  import gradio as gr
 
44
 
45
  from gradio_log import Log
46
 
src/pyproject.toml CHANGED
@@ -8,7 +8,7 @@ build-backend = "hatchling.build"
8
 
9
  [project]
10
  name = "gradio_log"
11
- version = "0.0.2"
12
  description = "A Log component for Gradio which can easily show some log file in the interface."
13
  readme = "README.md"
14
  license = "Apache-2.0"
@@ -43,7 +43,11 @@ classifiers = [
43
  dev = ["build", "twine"]
44
 
45
  [tool.hatch.build]
46
- artifacts = ["/backend/gradio_log/templates", "*.pyi", "backend/gradio_log/templates", "backend/gradio_log/templates", "backend/gradio_log/templates", "backend/gradio_log/templates", "backend/gradio_log/templates", "backend/gradio_log/templates"]
47
 
48
  [tool.hatch.build.targets.wheel]
49
  packages = ["/backend/gradio_log"]
 
 
 
 
 
8
 
9
  [project]
10
  name = "gradio_log"
11
+ version = "0.0.3"
12
  description = "A Log component for Gradio which can easily show some log file in the interface."
13
  readme = "README.md"
14
  license = "Apache-2.0"
 
43
  dev = ["build", "twine"]
44
 
45
  [tool.hatch.build]
46
+ artifacts = ["/backend/gradio_log/templates", "*.pyi", "backend/gradio_log/templates", "backend/gradio_log/templates", "backend/gradio_log/templates", "backend/gradio_log/templates", "backend/gradio_log/templates", "backend/gradio_log/templates", "backend/gradio_log/templates"]
47
 
48
  [tool.hatch.build.targets.wheel]
49
  packages = ["/backend/gradio_log"]
50
+
51
+ [project.urls]
52
+ Homepage = "https://github.com/louis-she/gradio-log"
53
+ Repository = "https://github.com/louis-she/gradio-log"