LucaVivona commited on
Commit
227007c
Β·
2 Parent(s): 771fa31 460ce1a

Merge branch 'main' of https://github.com/LVivona/Gradio-Flow into main

Browse files
README.md CHANGED
@@ -1,5 +1,13 @@
1
- # Gradio Flow πŸ€—
2
-
 
 
 
 
 
 
 
 
3
  **A web application with a backend in [Flask](https://flask.palletsprojects.com/en/2.2.x/) and frontend in [React](https://reactjs.org), and [React flow](https://reactflow.dev/) node base environment to
4
  stream both [Gradio](https://gradio.app) ( and later [Streamlit](https://streamlit.io) ) interfaces, within a single application.**
5
 
@@ -125,6 +133,7 @@ def InterLauncher(name, interface, listen=2000, **kwargs):
125
  ![Node Menu](images/new_feature.png)
126
 
127
  ### In The Works 🚧
 
128
  - Appending streamlit into gradio-flow
129
  - 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.
130
 
@@ -194,7 +203,7 @@ python app.py -p 2000
194
  //**NOTE** -p 2000 just assignes it localhost port 2000 anyother port will not work
195
  ```
196
  #### **5.** Run Gradio within Gradio-Flow
197
- It is quite simple, and similar within the docker build, the first way you can append your gradio to the Gradio flow is through running your application at a reachable url that is provided ed when you run Gradio and appending it via ``+ button`` within the frontend, another way that is possible is that within the directory ``./backend/src/resources`` there is a code that you can use to convert your own class or functional base code into basic gradio tabular interface by using decorators, these decorators will send the nesarry information to the backend flask api and update the frontend menu state in which you'll will be able to interact with it within the front end creating a hub for gradio build functions(**read more** [**here**](https://github.com/LVivona/GradioWrapper)).
198
 
199
  **NOTE** If you use the gradio decorator compiler for gradio flow you need to set a listen port to 2000 or else the api will never get the key and will throw you an error, I'll also provided an example below if this isn't clear.
200
 
 
1
+ # Gradio Flow <img src="frontend/src/images/logo.svg" style="width:40px; height:40px;"/>
2
+
3
+ ## πŸ‘‹ Reach Me For Inquiry or Bugs
4
+ ```console
5
+ @Discord-Server: Hugging Face https://discord.com/invite/feTf9x3ZSB
6
+ @Discord-Name : Luca Vivona
7
+
8
+ ```
9
+
10
+ ## What Is Gradio Flow
11
  **A web application with a backend in [Flask](https://flask.palletsprojects.com/en/2.2.x/) and frontend in [React](https://reactjs.org), and [React flow](https://reactflow.dev/) node base environment to
12
  stream both [Gradio](https://gradio.app) ( and later [Streamlit](https://streamlit.io) ) interfaces, within a single application.**
13
 
 
133
  ![Node Menu](images/new_feature.png)
134
 
135
  ### In The Works 🚧
136
+ - Mutiple windows within the react-flow environment
137
  - Appending streamlit into gradio-flow
138
  - 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.
139
 
 
203
  //**NOTE** -p 2000 just assignes it localhost port 2000 anyother port will not work
204
  ```
205
  #### **5.** Run Gradio within Gradio-Flow
206
+ It is quite simple, and similar within the docker build, the first way you can append your gradio to the Gradio flow is through running your application at a reachable url that is provided ed when you run Gradio and appending it via ``+ button`` within the frontend, another way that is possible is that within the directory ``./backend/src/resources`` there is a code that you can use to convert your own class or functional base code into basic gradio tabular interface by using decorators, these decorators will send the nesarry information to the backend flask api and update the frontend menu state in which you'll will be able to interact with it within the front end creating a hub for gradio build functions(**read more** [**here**](https://github.com/LVivona/GradioWrapper) or look at the code [**here**](https://github.com/LVivona/Gradio-Flow/blob/main/backend/src/resources/module.py) ).
207
 
208
  **NOTE** If you use the gradio decorator compiler for gradio flow you need to set a listen port to 2000 or else the api will never get the key and will throw you an error, I'll also provided an example below if this isn't clear.
209
 
frontend/src/components/Navagation/navbar.js CHANGED
@@ -342,4 +342,4 @@ export default class Navbar extends Component{
342
 
343
  /**
344
  *
345
- * **/
 
342
 
343
  /**
344
  *
345
+ * **/