mirror of
https://github.com/gradio-app/gradio.git
synced 2024-11-27 01:40:20 +08:00
flask static fix, add text to image input
This commit is contained in:
parent
edc75218d7
commit
6fc316591c
@ -88,7 +88,7 @@ def main():
|
||||
def static(path):
|
||||
path = os.path.join(STATIC_PATH_LIB, path)
|
||||
if os.path.exists(path):
|
||||
return send_file()
|
||||
return send_file(path)
|
||||
else:
|
||||
abort(404)
|
||||
|
||||
|
@ -45,7 +45,7 @@
|
||||
.canvas_holder {
|
||||
text-align: center;
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
height: calc(100% - 36px);
|
||||
}
|
||||
.saliency_holder {
|
||||
position: absolute;
|
||||
|
@ -122,7 +122,7 @@ const image_input = {
|
||||
find(".image_editor")[0], {
|
||||
includeUI: {
|
||||
menuBarPosition: 'left',
|
||||
menu: ['crop', 'flip', 'rotate', 'draw', 'filter']
|
||||
menu: ['crop', 'flip', 'rotate', 'draw', 'filter', 'text']
|
||||
},
|
||||
cssMaxWidth: 700,
|
||||
cssMaxHeight: 500,
|
||||
|
@ -88,7 +88,7 @@ def main():
|
||||
def static(path):
|
||||
path = os.path.join(STATIC_PATH_LIB, path)
|
||||
if os.path.exists(path):
|
||||
return send_file()
|
||||
return send_file(path)
|
||||
else:
|
||||
abort(404)
|
||||
|
||||
|
@ -45,7 +45,7 @@
|
||||
.canvas_holder {
|
||||
text-align: center;
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
height: calc(100% - 36px);
|
||||
}
|
||||
.saliency_holder {
|
||||
position: absolute;
|
||||
|
@ -122,7 +122,7 @@ const image_input = {
|
||||
find(".image_editor")[0], {
|
||||
includeUI: {
|
||||
menuBarPosition: 'left',
|
||||
menu: ['crop', 'flip', 'rotate', 'draw', 'filter']
|
||||
menu: ['crop', 'flip', 'rotate', 'draw', 'filter', 'text']
|
||||
},
|
||||
cssMaxWidth: 700,
|
||||
cssMaxHeight: 500,
|
||||
|
Loading…
Reference in New Issue
Block a user