Aman Sharma commited on
Commit
ef4e7df
·
1 Parent(s): ad1cf6d

Update project structure and requirements

Browse files
Files changed (4) hide show
  1. app.py +1 -1
  2. setup.py +0 -14
  3. sketch_ nn/__init__.py +0 -11
  4. sketch_ nn/utils.py +0 -8
app.py CHANGED
@@ -45,4 +45,4 @@ iface = gr.Interface(
45
  )
46
 
47
  if __name__ == "__main__":
48
- iface.launch()
 
45
  )
46
 
47
  if __name__ == "__main__":
48
+ iface.launch(share=True)
setup.py DELETED
@@ -1,14 +0,0 @@
1
- from setuptools import setup, find_packages
2
-
3
- setup(
4
- name="sketch_nn",
5
- version="0.1",
6
- packages=find_packages(),
7
- install_requires=[
8
- "gradio",
9
- "torch",
10
- "opencv-python",
11
- "numpy",
12
- "pytesseract",
13
- ],
14
- )
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
sketch_ nn/__init__.py DELETED
@@ -1,11 +0,0 @@
1
- # Import the main class from the designer module
2
- from .designer import NeuralNetworkDesigner
3
-
4
- # Import any utility functions you want to make directly accessible
5
- from .utils import save_uploaded_file # assuming you have this function in utils.py
6
-
7
- # You can also define the version of your package here
8
- __version__ = "0.1.0"
9
-
10
- # If you want to control what gets imported with "from sketch_nn import *"
11
- __all__ = ['NeuralNetworkDesigner', 'save_uploaded_file']
 
 
 
 
 
 
 
 
 
 
 
 
sketch_ nn/utils.py DELETED
@@ -1,8 +0,0 @@
1
- import os
2
- import tempfile
3
-
4
- def save_uploaded_file(uploaded_file):
5
- temp_dir = tempfile.mkdtemp()
6
- temp_path = os.path.join(temp_dir, "uploaded_image.png")
7
- uploaded_file.save(temp_path)
8
- return temp_path