diff --git a/build/lib/gradio/networking.py b/build/lib/gradio/networking.py index 3ae10ba606..e51511921b 100644 --- a/build/lib/gradio/networking.py +++ b/build/lib/gradio/networking.py @@ -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) diff --git a/build/lib/gradio/static/css/interfaces/input/sketchpad.css b/build/lib/gradio/static/css/interfaces/input/sketchpad.css index 5d0b385f61..aea05497bc 100644 --- a/build/lib/gradio/static/css/interfaces/input/sketchpad.css +++ b/build/lib/gradio/static/css/interfaces/input/sketchpad.css @@ -45,7 +45,7 @@ .canvas_holder { text-align: center; width: 100%; - height: 100%; + height: calc(100% - 36px); } .saliency_holder { position: absolute; diff --git a/build/lib/gradio/static/js/interfaces/input/image.js b/build/lib/gradio/static/js/interfaces/input/image.js index 89d4fd8a54..4561146fe9 100644 --- a/build/lib/gradio/static/js/interfaces/input/image.js +++ b/build/lib/gradio/static/js/interfaces/input/image.js @@ -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, diff --git a/gradio/networking.py b/gradio/networking.py index 3ae10ba606..e51511921b 100644 --- a/gradio/networking.py +++ b/gradio/networking.py @@ -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) diff --git a/gradio/static/css/interfaces/input/sketchpad.css b/gradio/static/css/interfaces/input/sketchpad.css index 5d0b385f61..aea05497bc 100644 --- a/gradio/static/css/interfaces/input/sketchpad.css +++ b/gradio/static/css/interfaces/input/sketchpad.css @@ -45,7 +45,7 @@ .canvas_holder { text-align: center; width: 100%; - height: 100%; + height: calc(100% - 36px); } .saliency_holder { position: absolute; diff --git a/gradio/static/js/interfaces/input/image.js b/gradio/static/js/interfaces/input/image.js index 89d4fd8a54..4561146fe9 100644 --- a/gradio/static/js/interfaces/input/image.js +++ b/gradio/static/js/interfaces/input/image.js @@ -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,