LucaVivona commited on
Commit
bd87444
β€’
1 Parent(s): 4f7d562

refactor frontend 🚧

Browse files
Files changed (1) hide show
  1. README.md +8 -52
README.md CHANGED
@@ -107,72 +107,28 @@ stream both [Gradio](https://gradio.app) ( and later [Streamlit](https://streaml
107
 
108
  ## Updates βš’οΈ
109
  ### Backend πŸ’½
110
- - errors within the function InterLauncher fixed
111
- - port mapping fixed
112
- - removed test prints
113
- - ``__init__`` function takes inputs within class wrapper
114
- - better determine registered functions within classes
115
- - more examples located in the ``backend/src/example``
116
- - just import and launch or run them within the demoE.py file in ``backend/src``
117
- - launch interface functions that takes the interface and appends it within the gradio-flow so if it's (load, from_pipline, Block, or any other prebuilt interface you have you can append them into Gradio-Flow)
118
-
119
- ```python
120
- def InterLauncher(name, interface, listen=2000, **kwargs):
121
- port= kwargs["port"] if "port" in kwargs else DOCKER_PORT.determinePort()
122
- try:
123
- requests.post(f"http://{DOCKER_LOCAL_HOST}:{listen}/api/append/port", json={"port" : port, "host" : f'http://localhost:{port}', "file" : "Not Applicable", "name" : name, "kwargs" : kwargs})
124
- except Exception as e:
125
- print(f"**{bcolor.BOLD}{bcolor.FAIL}CONNECTION ERROR{bcolor.ENDC}** πŸ›The listening api is either not up or you choose the wrong port.πŸ› \n {e}")
126
- return
127
-
128
- interface.launch(server_port=port,
129
- server_name=f"{DOCKER_LOCAL_HOST}",
130
- inline= kwargs['inline'] if "inline" in kwargs else True,
131
- share=kwargs['share'] if "share" in kwargs else None,
132
- debug=kwargs['debug'] if "debug" in kwargs else False,
133
- enable_queue=kwargs['enable_queue'] if "enable_queue" in kwargs else None,
134
- max_threads=kwargs['max_threads'] if "max_threads" in kwargs else None,
135
- auth=kwargs['auth'] if "auth" in kwargs else None,
136
- auth_message=kwargs['auth_message'] if "auth_message" in kwargs else None,
137
- prevent_thread_lock=kwargs['prevent_thread_lock'] if "prevent_thread_lock" in kwargs else False,
138
- show_error=kwargs['show_error'] if "show_error" in kwargs else True,
139
- show_tips=kwargs['show_tips'] if "show_tips" in kwargs else False,
140
- height=kwargs['height'] if "height" in kwargs else 500,
141
- width=kwargs['width'] if "width" in kwargs else 900,
142
- encrypt=kwargs['encrypt'] if "encrypt" in kwargs else False,
143
- favicon_path=kwargs['favicon_path'] if "favicon_path" in kwargs else None,
144
- ssl_keyfile=kwargs['ssl_keyfile'] if "ssl_keyfile" in kwargs else None,
145
- ssl_certfile=kwargs['ssl_certfile'] if "ssl_certfile" in kwargs else None,
146
- ssl_keyfile_password=kwargs['ssl_keyfile_password'] if "ssl_keyfile_password" in kwargs else None,
147
- quiet=kwargs['quiet'] if "quiet" in kwargs else False)
148
-
149
- try:
150
- requests.post(f"http://{DOCKER_LOCAL_HOST}:{ listen }/api/remove/port", json={"port" : port, "host" : f'http://localhost:{port}', "file" : 'Not Applicable', "name" : name, "kwargs" : kwargs})
151
- except Exception as e:
152
- print(f"**{bcolor.BOLD}{bcolor.FAIL}CONNECTION ERROR{bcolor.ENDC}** πŸ›The api either lost connection or was turned off...πŸ› \n {e}")
153
- ```
154
 
155
 
156
  ### Frontend πŸ–₯️
157
  - Node Menu
158
- - Save Board Button
159
- - When the pages refreshes it loads the last saved board
160
- - Dynamic adjust the size of node
161
- - Draggable bottom to expand height
162
- - Delete node Button
163
- - Delete All Nodes if removed from Gradio-Flow
164
- - Link to gradio to host it in seprate tab
165
- - Refresh Button to refresh the iframe if need be
166
  - fixed some bugs from ``+ button`` for catching errors and wrong inputs
167
  - ``+ button`` now includes hugginface spaces, and gradio share
168
  - https://hf.space/embed/name_of_user/name_of_space/+
169
  - Examples: (https://hf.space/embed/marcop/musika/+, https://hf.space/embed/stabilityai/stable-diffusion/+)
 
 
 
 
170
 
171
 
172
 
173
  ![Node Menu](images/new_feature.png)
174
 
175
  ### In The Works 🚧
 
 
176
  - Mutiple windows within the react-flow environment
177
  - Appending streamlit into gradio-flow
178
  - Directory tree search that looks for files that contain classes and functions that are registered under the decorators that are in ``backend/src/resources`` allowing you to append all your registered functions with only using the frontend.
 
107
 
108
  ## Updates βš’οΈ
109
  ### Backend πŸ’½
110
+ - Module fixes
111
+ - Demo file
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
112
 
113
 
114
  ### Frontend πŸ–₯️
115
  - Node Menu
 
 
 
 
 
 
 
 
116
  - fixed some bugs from ``+ button`` for catching errors and wrong inputs
117
  - ``+ button`` now includes hugginface spaces, and gradio share
118
  - https://hf.space/embed/name_of_user/name_of_space/+
119
  - Examples: (https://hf.space/embed/marcop/musika/+, https://hf.space/embed/stabilityai/stable-diffusion/+)
120
+ - better user interface for shared links
121
+ - Node
122
+ - within firefox draggable size change not availible due to code error
123
+ - scrollable iframe
124
 
125
 
126
 
127
  ![Node Menu](images/new_feature.png)
128
 
129
  ### In The Works 🚧
130
+ - App Name change
131
+ - Streamlit application within Gradio-Flow
132
  - Mutiple windows within the react-flow environment
133
  - Appending streamlit into gradio-flow
134
  - Directory tree search that looks for files that contain classes and functions that are registered under the decorators that are in ``backend/src/resources`` allowing you to append all your registered functions with only using the frontend.