added contact page

This commit is contained in:
Ali Abdalla 2019-04-10 16:39:43 -07:00
parent b75a85a6e0
commit 4dcc323160
8 changed files with 151 additions and 16 deletions

View File

@ -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,

View File

@ -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 @@
" <iframe\n",
" width=\"1000\"\n",
" height=\"500\"\n",
" src=\"http://localhost:7860/\"\n",
" src=\"http://localhost:7863/\"\n",
" frameborder=\"0\"\n",
" allowfullscreen\n",
" ></iframe>\n",
" "
],
"text/plain": [
"<IPython.lib.display.IFrame at 0x1dd319425f8>"
"<IPython.lib.display.IFrame at 0x1fda5796f98>"
]
},
"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,

View File

@ -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()

View File

@ -13,6 +13,7 @@
<a href="getting_started.html">Getting Started</a>
<a href="sharing.html">Sharing</a>
<a class="selected" href="blog.html">Blog</a>
<a href="contact.html">Contact</a>
</nav>
<div class="content">
<div class="row">

70
web/contact.html Normal file
View File

@ -0,0 +1,70 @@
<html>
<head>
<!-- Global site tag (gtag.js) - Google Analytics -->
<script async src="https://www.googletagmanager.com/gtag/js?id=UA-123499302-2"></script>
<script>
window.dataLayer = window.dataLayer || [];
function gtag(){dataLayer.push(arguments);}
gtag('js', new Date());
gtag('config', 'UA-123499302-2');
</script>
<title>Gradio</title>
<link href="https://fonts.googleapis.com/css?family=Open+Sans" rel="stylesheet">
<link href="style/style.css" rel="stylesheet">
<link href="style/sharing.css" rel="stylesheet">
<link href="style/gradio.css" rel="stylesheet">
</head>
<body>
<nav>
<img src="img/logo_inline.png" />
<a href="index.html">Gradio</a>
<a href="getting_started.html">Getting Started</a>
<a href="sharing.html">Sharing</a>
<a href="blog.html">Blog</a>
<a class="selected" href="contact.html">Contact</a>
</nav>
<div class="content">
<!-- Begin Mailchimp Signup Form -->
<link href="//cdn-images.mailchimp.com/embedcode/classic-10_7.css" rel="stylesheet" type="text/css">
<style type="text/css">
#mc_embed_signup{background:#fff; clear:left; font:14px Helvetica,Arial,sans-serif; }
/* Add your own Mailchimp form style overrides in your site stylesheet or in this style block.
We recommend moving this block and the preceding CSS link to the HEAD of your HTML file. */
</style>
<div id="mc_embed_signup">
<form action="https://tarteel.us19.list-manage.com/subscribe/post?u=ab8add36046818c66a55a4f9c&amp;id=7832a074f6" method="post" id="mc-embedded-subscribe-form" name="mc-embedded-subscribe-form" class="validate" target="_blank" novalidate>
<div id="mc_embed_signup_scroll" class="summary_box">
<h2>Subscribe to our mailing list for updates! </h2>
<div class="indicates-required"><span class="asterisk">*</span> indicates required</div>
<div class="mc-field-group">
<label for="mce-EMAIL">Email Address <span class="asterisk">*</span>
</label>
<input type="email" value="" name="EMAIL" class="required email" id="mce-EMAIL">
</div>
<div class="mc-field-group">
<label for="mce-FNAME">First Name </label>
<input type="text" value="" name="FNAME" class="" id="mce-FNAME">
</div>
<div class="mc-field-group">
<label for="mce-LNAME">Last Name </label>
<input type="text" value="" name="LNAME" class="" id="mce-LNAME">
</div>
<div id="mce-responses" class="clear">
<div class="response" id="mce-error-response" style="display:none"></div>
<div class="response" id="mce-success-response" style="display:none"></div>
</div> <!-- real people should not fill this in and expect good things - do not remove this or risk form bot signups-->
<div style="position: absolute; left: -5000px;" aria-hidden="true"><input type="text" name="b_ab8add36046818c66a55a4f9c_7832a074f6" tabindex="-1" value=""></div>
<div class="clear"><input class="submit" type="submit" value="Subscribe" name="subscribe" id="mc-embedded-subscribe"></div>
<h2>Reach us at gradioapp@gmail.com </h2>
</div>
</form>
</div> </div>
<footer>
<img src="img/logo_inline.png" />
</footer>
<body>
</html>

View File

@ -28,6 +28,7 @@
<a class="selected" href="getting_started.html">Getting Started</a>
<a href="sharing.html">Sharing</a>
<a href="blog.html">Blog</a>
<a href="contact.html">Contact</a>
</nav>
<div class="content">
<h1>Installation</h1>

View File

@ -8,7 +8,7 @@
gtag('js', new Date());
gtag('config', 'UA-123499302-2');
</script>
</script>
<title>Gradio</title>
<link href="https://fonts.googleapis.com/css?family=Open+Sans" rel="stylesheet">
<link href="style/style.css" rel="stylesheet">
@ -22,6 +22,7 @@
<a href="getting_started.html">Getting Started</a>
<a href="sharing.html">Sharing</a>
<a href="blog.html">Blog</a>
<a href="contact.html">Contact</a>
</nav>
<div id="hero-section"><!--
--><div id="intro">
@ -133,6 +134,49 @@
audience.</p>
</div>
</div>
<!-- Begin Mailchimp Signup Form -->
<link href="//cdn-images.mailchimp.com/embedcode/classic-10_7.css" rel="stylesheet" type="text/css">
<style type="text/css">
#mc_embed_signup{background:#fff; clear:left; font:14px Helvetica,Arial,sans-serif; }
/* Add your own Mailchimp form style overrides in your site stylesheet or in this style block.
We recommend moving this block and the preceding CSS link to the HEAD of your HTML file. */
</style>
<div id="mc_embed_signup">
<form action="https://tarteel.us19.list-manage.com/subscribe/post?u=ab8add36046818c66a55a4f9c&amp;id=7832a074f6" method="post" id="mc-embedded-subscribe-form" name="mc-embedded-subscribe-form" class="validate" target="_blank" novalidate>
<div id="mc_embed_signup_scroll" class="summary_box">
<h2>Subscribe to our mailing list for updates! </h2>
<div class="indicates-required"><span class="asterisk">*</span> indicates required</div>
<div class="mc-field-group">
<label for="mce-EMAIL">Email Address <span class="asterisk">*</span>
</label>
<input type="email" value="" name="EMAIL" class="required email" id="mce-EMAIL">
</div>
<div class="mc-field-group">
<label for="mce-FNAME">First Name </label>
<input type="text" value="" name="FNAME" class="" id="mce-FNAME">
</div>
<div class="mc-field-group">
<label for="mce-LNAME">Last Name </label>
<input type="text" value="" name="LNAME" class="" id="mce-LNAME">
</div>
<div id="mce-responses" class="clear">
<div class="response" id="mce-error-response" style="display:none"></div>
<div class="response" id="mce-success-response" style="display:none"></div>
</div> <!-- real people should not fill this in and expect good things - do not remove this or risk form bot signups-->
<div style="position: absolute; left: -5000px;" aria-hidden="true"><input type="text" name="b_ab8add36046818c66a55a4f9c_7832a074f6" tabindex="-1" value=""></div>
<div class="clear"><input class="submit" type="submit" value="Subscribe" name="subscribe" id="mc-embedded-subscribe"></div>
<h2>Reach us at gradioapp@gmail.com </h2>
</div>
</form>
</div>
<!--End mc_embed_signup-->
<footer>
<img src="img/logo_inline.png" />
</footer>

View File

@ -8,7 +8,7 @@
gtag('js', new Date());
gtag('config', 'UA-123499302-2');
</script>
</script>
<title>Gradio</title>
<link href="https://fonts.googleapis.com/css?family=Open+Sans" rel="stylesheet">
<link href="style/style.css" rel="stylesheet">
@ -22,6 +22,7 @@
<a href="getting_started.html">Getting Started</a>
<a class="selected" href="sharing.html">Sharing</a>
<a href="blog.html">Blog</a>
<a href="contact.html">Contact</a>
</nav>
<div class="content">
<h1>Sharing</h1>