From 4dcc3231602e9699e03bd89fa8a2577239909958 Mon Sep 17 00:00:00 2001 From: Ali Abdalla Date: Wed, 10 Apr 2019 16:39:43 -0700 Subject: [PATCH] added contact page --- Test Keras MNIST.ipynb | 6 ++-- Test Keras.ipynb | 39 +++++++++++++++------- gradio/interface.py | 1 + web/blog.html | 1 + web/contact.html | 70 ++++++++++++++++++++++++++++++++++++++++ web/getting_started.html | 1 + web/index.html | 46 +++++++++++++++++++++++++- web/sharing.html | 3 +- 8 files changed, 151 insertions(+), 16 deletions(-) create mode 100644 web/contact.html diff --git a/Test Keras MNIST.ipynb b/Test Keras MNIST.ipynb index ca0d1f87d8..aed05ed22f 100644 --- a/Test Keras MNIST.ipynb +++ b/Test Keras MNIST.ipynb @@ -149,9 +149,9 @@ ], "metadata": { "kernelspec": { - "display_name": "Python 3.6 (tensorflow)", + "display_name": "Python 3", "language": "python", - "name": "tensorflow" + "name": "python3" }, "language_info": { "codemirror_mode": { @@ -163,7 +163,7 @@ "name": "python", "nbconvert_exporter": "python", "pygments_lexer": "ipython3", - "version": "3.6.7" + "version": "3.7.1" } }, "nbformat": 4, diff --git a/Test Keras.ipynb b/Test Keras.ipynb index 792798efad..885d5fed4c 100644 --- a/Test Keras.ipynb +++ b/Test Keras.ipynb @@ -25,7 +25,17 @@ "cell_type": "code", "execution_count": 2, "metadata": {}, - "outputs": [], + "outputs": [ + { + "name": "stdout", + "output_type": "stream", + "text": [ + "WARNING:tensorflow:From C:\\Users\\ALI\\Anaconda3\\lib\\site-packages\\tensorflow\\python\\ops\\resource_variable_ops.py:435: colocate_with (from tensorflow.python.framework.ops) is deprecated and will be removed in a future version.\n", + "Instructions for updating:\n", + "Colocations handled automatically by placer.\n" + ] + } + ], "source": [ "model = tf.keras.applications.inception_v3.InceptionV3()" ] @@ -77,11 +87,11 @@ }, { "cell_type": "code", - "execution_count": 5, + "execution_count": 10, "metadata": {}, "outputs": [], "source": [ - "inp = gradio.inputs.ImageUpload()\n", + "inp = gradio.inputs.ImageUpload(shape=(299,299,3))\n", "out = gradio.outputs.Label(label_names='imagenet1000', max_label_length=8)\n", "\n", "io = gradio.Interface(inputs=inp, \n", @@ -92,7 +102,7 @@ }, { "cell_type": "code", - "execution_count": 6, + "execution_count": 11, "metadata": { "scrolled": false }, @@ -102,8 +112,8 @@ "output_type": "stream", "text": [ "NOTE: Gradio is in beta stage, please report all bugs to: contact.gradio@gmail.com\n", - "Model is running locally at: http://localhost:7860/\n", - "Unable to create public link for interface, please check internet connection or try restarting python interpreter.\n" + "Model is running locally at: http://localhost:7863/\n", + "Model available publicly for 8 hours at: https://bbf127b1.gradio.app/\n" ] }, { @@ -113,14 +123,14 @@ " \n", " " ], "text/plain": [ - "" + "" ] }, "metadata": {}, @@ -130,13 +140,20 @@ "source": [ "io.launch(inline=True, inbrowser=False, share=True, validate=False);" ] + }, + { + "cell_type": "code", + "execution_count": null, + "metadata": {}, + "outputs": [], + "source": [] } ], "metadata": { "kernelspec": { - "display_name": "Python 3.6 (tensorflow)", + "display_name": "Python 3", "language": "python", - "name": "tensorflow" + "name": "python3" }, "language_info": { "codemirror_mode": { @@ -148,7 +165,7 @@ "name": "python", "nbconvert_exporter": "python", "pygments_lexer": "ipython3", - "version": "3.6.7" + "version": "3.7.1" } }, "nbformat": 4, diff --git a/gradio/interface.py b/gradio/interface.py index 1bfc69e37d..807159e454 100644 --- a/gradio/interface.py +++ b/gradio/interface.py @@ -123,6 +123,7 @@ class Interface: } await websocket.send(json.dumps(output)) if msg['action'] == 'flag': + print('flagged') f = open('gradio-flagged.txt','a+') f.write(str(msg['data'])) f.close() diff --git a/web/blog.html b/web/blog.html index b9a9f487b6..77620c1a2c 100644 --- a/web/blog.html +++ b/web/blog.html @@ -13,6 +13,7 @@ Getting Started Sharing Blog + Contact
diff --git a/web/contact.html b/web/contact.html new file mode 100644 index 0000000000..4c36f54d0e --- /dev/null +++ b/web/contact.html @@ -0,0 +1,70 @@ + + + + + + Gradio + + + + + + + +
+ + + + + +
+
+
+

Subscribe to our mailing list for updates!

+
* indicates required
+
+ + +
+
+ + +
+
+ + +
+
+ + +
+ +
+

Reach us at gradioapp@gmail.com

+
+
+
+
+ +
+ + diff --git a/web/getting_started.html b/web/getting_started.html index c8271c0937..2770ff77ee 100644 --- a/web/getting_started.html +++ b/web/getting_started.html @@ -28,6 +28,7 @@ Getting Started Sharing Blog + Contact

Installation

diff --git a/web/index.html b/web/index.html index 57c59e6a34..7c2e758b76 100644 --- a/web/index.html +++ b/web/index.html @@ -8,7 +8,7 @@ gtag('js', new Date()); gtag('config', 'UA-123499302-2'); - + Gradio @@ -22,6 +22,7 @@ Getting Started Sharing Blog + Contact
@@ -133,6 +134,49 @@ audience.

+ + + + + +
+
+
+

Subscribe to our mailing list for updates!

+
* indicates required
+
+ + +
+
+ + +
+
+ + +
+
+ + +
+ +
+

Reach us at gradioapp@gmail.com

+
+
+
+ + + + + +
diff --git a/web/sharing.html b/web/sharing.html index 8eb2e24997..3744bf76e0 100644 --- a/web/sharing.html +++ b/web/sharing.html @@ -8,7 +8,7 @@ gtag('js', new Date()); gtag('config', 'UA-123499302-2'); - + Gradio @@ -22,6 +22,7 @@ Getting Started Sharing Blog + Contact

Sharing