Spaces:
Configuration error
Configuration error
LucaVivona
commited on
Merge -><-
Browse files- README.md +8 -6
- frontend/src/Components/Nodes/Custom.js +5 -5
README.md
CHANGED
@@ -5,6 +5,9 @@ stream both [Gradio](https://gradio.app) ( and later [Streamlit](https://streaml
|
|
5 |
|
6 |
|
7 |
## Tabel Of Contents π
|
|
|
|
|
|
|
8 |
- [**Updates**](#updates-%EF%B8%8F)
|
9 |
|
10 |
|
@@ -53,7 +56,11 @@ stream both [Gradio](https://gradio.app) ( and later [Streamlit](https://streaml
|
|
53 |
|
54 |
- [**More Demos**](#more-demos-)
|
55 |
|
56 |
-
|
|
|
|
|
|
|
|
|
57 |
|
58 |
## Updates βοΈ
|
59 |
### Backend π½
|
@@ -232,8 +239,3 @@ Within the ``backend/src/demo`` directory there are some demos
|
|
232 |
> python demo.py -e class -l 2000
|
233 |
> python demo.py -e class
|
234 |
```
|
235 |
-
## Application ποΈ
|
236 |
-
![Dark-Application](https://github.com/LVivona/Gradio-Flow/blob/8edde72f878c174f53602c4ddff0fc6d3fc7cd61/images/app.png)
|
237 |
-
![Light-Application](https://github.com/LVivona/Gradio-Flow/blob/8edde72f878c174f53602c4ddff0fc6d3fc7cd61/images/light-app.png)
|
238 |
-
|
239 |
-
|
|
|
5 |
|
6 |
|
7 |
## Tabel Of Contents π
|
8 |
+
- [**Application**](#application-%EF%B8%8F)
|
9 |
+
|
10 |
+
|
11 |
- [**Updates**](#updates-%EF%B8%8F)
|
12 |
|
13 |
|
|
|
56 |
|
57 |
- [**More Demos**](#more-demos-)
|
58 |
|
59 |
+
|
60 |
+
|
61 |
+
## Application ποΈ
|
62 |
+
![Dark-Application](images/application_dark.png)
|
63 |
+
![Light-Application](images/application_light.png)
|
64 |
|
65 |
## Updates βοΈ
|
66 |
### Backend π½
|
|
|
239 |
> python demo.py -e class -l 2000
|
240 |
> python demo.py -e class
|
241 |
```
|
|
|
|
|
|
|
|
|
|
frontend/src/Components/Nodes/Custom.js
CHANGED
@@ -71,15 +71,15 @@ export default class CustomNodeIframe extends React.Component {
|
|
71 |
</div>
|
72 |
</div>)
|
73 |
}
|
74 |
-
|
75 |
render(){
|
76 |
if (!this.state.reachable) this.onNodeClick(this.state.id)
|
77 |
return (<>
|
78 |
<>
|
79 |
-
<div className=" flex w-full h-10 top-0 cursor-pointer">
|
80 |
-
<div title="Collaspse Node" className=" duration-300 cursor-pointer shadow-xl border-2 dark:border-white border-
|
81 |
|
82 |
-
|
83 |
<div className={` flex ${this.state.selected ? '' : 'w-0 hidden'}`}>
|
84 |
<div title="Adjust Node Size" className="duration-300 cursor-pointer shadow-xl border-2 dark:border-white border-white h-10 w-10 mr-2 -mt-3 bg-Warm-Violet rounded-xl" onClick={this.handelSizeState}><TbResize className="h-full w-full text-white p-1"/></div>
|
85 |
<a href={this.state.data.host} target="_blank" rel="noopener noreferrer"><div title="Gradio Host Site" className="duration-300 cursor-pointer shadow-xl border-2 dark:border-white border-white h-10 w-10 mr-2 -mt-3 bg-Warm-Pink rounded-xl"><BiCube className="h-full w-full text-white p-1"/></div></a>
|
@@ -107,4 +107,4 @@ export default class CustomNodeIframe extends React.Component {
|
|
107 |
</>
|
108 |
</>)
|
109 |
}
|
110 |
-
}
|
|
|
71 |
</div>
|
72 |
</div>)
|
73 |
}
|
74 |
+
|
75 |
render(){
|
76 |
if (!this.state.reachable) this.onNodeClick(this.state.id)
|
77 |
return (<>
|
78 |
<>
|
79 |
+
<div className=" flex w-full h-10 top-0 cursor-pointer" onClick={this.handelEvent}>
|
80 |
+
<div title="Collaspse Node" className=" duration-300 cursor-pointer shadow-xl border-2 dark:border-white border-black h-10 w-10 mr-2 -mt-3 bg-Warm-Blue rounded-xl" onClick={this.handelSelected}><CgLayoutGridSmall className="h-full w-full text-white p-1"/></div>
|
81 |
|
82 |
+
|
83 |
<div className={` flex ${this.state.selected ? '' : 'w-0 hidden'}`}>
|
84 |
<div title="Adjust Node Size" className="duration-300 cursor-pointer shadow-xl border-2 dark:border-white border-white h-10 w-10 mr-2 -mt-3 bg-Warm-Violet rounded-xl" onClick={this.handelSizeState}><TbResize className="h-full w-full text-white p-1"/></div>
|
85 |
<a href={this.state.data.host} target="_blank" rel="noopener noreferrer"><div title="Gradio Host Site" className="duration-300 cursor-pointer shadow-xl border-2 dark:border-white border-white h-10 w-10 mr-2 -mt-3 bg-Warm-Pink rounded-xl"><BiCube className="h-full w-full text-white p-1"/></div></a>
|
|
|
107 |
</>
|
108 |
</>)
|
109 |
}
|
110 |
+
}
|