mirror of
https://github.com/gradio-app/gradio.git
synced 2025-02-23 11:39:17 +08:00
added contact page
This commit is contained in:
parent
f503d100cc
commit
c48e4578ff
@ -149,9 +149,9 @@
|
|||||||
],
|
],
|
||||||
"metadata": {
|
"metadata": {
|
||||||
"kernelspec": {
|
"kernelspec": {
|
||||||
"display_name": "Python 3.6 (tensorflow)",
|
"display_name": "Python 3",
|
||||||
"language": "python",
|
"language": "python",
|
||||||
"name": "tensorflow"
|
"name": "python3"
|
||||||
},
|
},
|
||||||
"language_info": {
|
"language_info": {
|
||||||
"codemirror_mode": {
|
"codemirror_mode": {
|
||||||
@ -163,7 +163,7 @@
|
|||||||
"name": "python",
|
"name": "python",
|
||||||
"nbconvert_exporter": "python",
|
"nbconvert_exporter": "python",
|
||||||
"pygments_lexer": "ipython3",
|
"pygments_lexer": "ipython3",
|
||||||
"version": "3.6.7"
|
"version": "3.7.1"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"nbformat": 4,
|
"nbformat": 4,
|
||||||
|
@ -25,7 +25,17 @@
|
|||||||
"cell_type": "code",
|
"cell_type": "code",
|
||||||
"execution_count": 2,
|
"execution_count": 2,
|
||||||
"metadata": {},
|
"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": [
|
"source": [
|
||||||
"model = tf.keras.applications.inception_v3.InceptionV3()"
|
"model = tf.keras.applications.inception_v3.InceptionV3()"
|
||||||
]
|
]
|
||||||
@ -77,11 +87,11 @@
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
"cell_type": "code",
|
"cell_type": "code",
|
||||||
"execution_count": 5,
|
"execution_count": 10,
|
||||||
"metadata": {},
|
"metadata": {},
|
||||||
"outputs": [],
|
"outputs": [],
|
||||||
"source": [
|
"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",
|
"out = gradio.outputs.Label(label_names='imagenet1000', max_label_length=8)\n",
|
||||||
"\n",
|
"\n",
|
||||||
"io = gradio.Interface(inputs=inp, \n",
|
"io = gradio.Interface(inputs=inp, \n",
|
||||||
@ -92,7 +102,7 @@
|
|||||||
},
|
},
|
||||||
{
|
{
|
||||||
"cell_type": "code",
|
"cell_type": "code",
|
||||||
"execution_count": 6,
|
"execution_count": 11,
|
||||||
"metadata": {
|
"metadata": {
|
||||||
"scrolled": false
|
"scrolled": false
|
||||||
},
|
},
|
||||||
@ -102,8 +112,8 @@
|
|||||||
"output_type": "stream",
|
"output_type": "stream",
|
||||||
"text": [
|
"text": [
|
||||||
"NOTE: Gradio is in beta stage, please report all bugs to: contact.gradio@gmail.com\n",
|
"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",
|
"Model is running locally at: http://localhost:7863/\n",
|
||||||
"Unable to create public link for interface, please check internet connection or try restarting python interpreter.\n"
|
"Model available publicly for 8 hours at: https://bbf127b1.gradio.app/\n"
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
@ -113,14 +123,14 @@
|
|||||||
" <iframe\n",
|
" <iframe\n",
|
||||||
" width=\"1000\"\n",
|
" width=\"1000\"\n",
|
||||||
" height=\"500\"\n",
|
" height=\"500\"\n",
|
||||||
" src=\"http://localhost:7860/\"\n",
|
" src=\"http://localhost:7863/\"\n",
|
||||||
" frameborder=\"0\"\n",
|
" frameborder=\"0\"\n",
|
||||||
" allowfullscreen\n",
|
" allowfullscreen\n",
|
||||||
" ></iframe>\n",
|
" ></iframe>\n",
|
||||||
" "
|
" "
|
||||||
],
|
],
|
||||||
"text/plain": [
|
"text/plain": [
|
||||||
"<IPython.lib.display.IFrame at 0x1dd319425f8>"
|
"<IPython.lib.display.IFrame at 0x1fda5796f98>"
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
"metadata": {},
|
"metadata": {},
|
||||||
@ -130,13 +140,20 @@
|
|||||||
"source": [
|
"source": [
|
||||||
"io.launch(inline=True, inbrowser=False, share=True, validate=False);"
|
"io.launch(inline=True, inbrowser=False, share=True, validate=False);"
|
||||||
]
|
]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"cell_type": "code",
|
||||||
|
"execution_count": null,
|
||||||
|
"metadata": {},
|
||||||
|
"outputs": [],
|
||||||
|
"source": []
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"metadata": {
|
"metadata": {
|
||||||
"kernelspec": {
|
"kernelspec": {
|
||||||
"display_name": "Python 3.6 (tensorflow)",
|
"display_name": "Python 3",
|
||||||
"language": "python",
|
"language": "python",
|
||||||
"name": "tensorflow"
|
"name": "python3"
|
||||||
},
|
},
|
||||||
"language_info": {
|
"language_info": {
|
||||||
"codemirror_mode": {
|
"codemirror_mode": {
|
||||||
@ -148,7 +165,7 @@
|
|||||||
"name": "python",
|
"name": "python",
|
||||||
"nbconvert_exporter": "python",
|
"nbconvert_exporter": "python",
|
||||||
"pygments_lexer": "ipython3",
|
"pygments_lexer": "ipython3",
|
||||||
"version": "3.6.7"
|
"version": "3.7.1"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"nbformat": 4,
|
"nbformat": 4,
|
||||||
|
@ -123,6 +123,7 @@ class Interface:
|
|||||||
}
|
}
|
||||||
await websocket.send(json.dumps(output))
|
await websocket.send(json.dumps(output))
|
||||||
if msg['action'] == 'flag':
|
if msg['action'] == 'flag':
|
||||||
|
print('flagged')
|
||||||
f = open('gradio-flagged.txt','a+')
|
f = open('gradio-flagged.txt','a+')
|
||||||
f.write(str(msg['data']))
|
f.write(str(msg['data']))
|
||||||
f.close()
|
f.close()
|
||||||
|
@ -13,6 +13,7 @@
|
|||||||
<a href="getting_started.html">Getting Started</a>
|
<a href="getting_started.html">Getting Started</a>
|
||||||
<a href="sharing.html">Sharing</a>
|
<a href="sharing.html">Sharing</a>
|
||||||
<a class="selected" href="blog.html">Blog</a>
|
<a class="selected" href="blog.html">Blog</a>
|
||||||
|
<a href="contact.html">Contact</a>
|
||||||
</nav>
|
</nav>
|
||||||
<div class="content">
|
<div class="content">
|
||||||
<div class="row">
|
<div class="row">
|
||||||
|
70
web/contact.html
Normal file
70
web/contact.html
Normal 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&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>
|
@ -28,6 +28,7 @@
|
|||||||
<a class="selected" href="getting_started.html">Getting Started</a>
|
<a class="selected" href="getting_started.html">Getting Started</a>
|
||||||
<a href="sharing.html">Sharing</a>
|
<a href="sharing.html">Sharing</a>
|
||||||
<a href="blog.html">Blog</a>
|
<a href="blog.html">Blog</a>
|
||||||
|
<a href="contact.html">Contact</a>
|
||||||
</nav>
|
</nav>
|
||||||
<div class="content">
|
<div class="content">
|
||||||
<h1>Installation</h1>
|
<h1>Installation</h1>
|
||||||
|
@ -8,7 +8,7 @@
|
|||||||
gtag('js', new Date());
|
gtag('js', new Date());
|
||||||
|
|
||||||
gtag('config', 'UA-123499302-2');
|
gtag('config', 'UA-123499302-2');
|
||||||
</script>
|
</script>
|
||||||
<title>Gradio</title>
|
<title>Gradio</title>
|
||||||
<link href="https://fonts.googleapis.com/css?family=Open+Sans" rel="stylesheet">
|
<link href="https://fonts.googleapis.com/css?family=Open+Sans" rel="stylesheet">
|
||||||
<link href="style/style.css" rel="stylesheet">
|
<link href="style/style.css" rel="stylesheet">
|
||||||
@ -22,6 +22,7 @@
|
|||||||
<a href="getting_started.html">Getting Started</a>
|
<a href="getting_started.html">Getting Started</a>
|
||||||
<a href="sharing.html">Sharing</a>
|
<a href="sharing.html">Sharing</a>
|
||||||
<a href="blog.html">Blog</a>
|
<a href="blog.html">Blog</a>
|
||||||
|
<a href="contact.html">Contact</a>
|
||||||
</nav>
|
</nav>
|
||||||
<div id="hero-section"><!--
|
<div id="hero-section"><!--
|
||||||
--><div id="intro">
|
--><div id="intro">
|
||||||
@ -133,6 +134,49 @@
|
|||||||
audience.</p>
|
audience.</p>
|
||||||
</div>
|
</div>
|
||||||
</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&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>
|
<footer>
|
||||||
<img src="img/logo_inline.png" />
|
<img src="img/logo_inline.png" />
|
||||||
</footer>
|
</footer>
|
||||||
|
@ -8,7 +8,7 @@
|
|||||||
gtag('js', new Date());
|
gtag('js', new Date());
|
||||||
|
|
||||||
gtag('config', 'UA-123499302-2');
|
gtag('config', 'UA-123499302-2');
|
||||||
</script>
|
</script>
|
||||||
<title>Gradio</title>
|
<title>Gradio</title>
|
||||||
<link href="https://fonts.googleapis.com/css?family=Open+Sans" rel="stylesheet">
|
<link href="https://fonts.googleapis.com/css?family=Open+Sans" rel="stylesheet">
|
||||||
<link href="style/style.css" rel="stylesheet">
|
<link href="style/style.css" rel="stylesheet">
|
||||||
@ -22,6 +22,7 @@
|
|||||||
<a href="getting_started.html">Getting Started</a>
|
<a href="getting_started.html">Getting Started</a>
|
||||||
<a class="selected" href="sharing.html">Sharing</a>
|
<a class="selected" href="sharing.html">Sharing</a>
|
||||||
<a href="blog.html">Blog</a>
|
<a href="blog.html">Blog</a>
|
||||||
|
<a href="contact.html">Contact</a>
|
||||||
</nav>
|
</nav>
|
||||||
<div class="content">
|
<div class="content">
|
||||||
<h1>Sharing</h1>
|
<h1>Sharing</h1>
|
||||||
|
Loading…
Reference in New Issue
Block a user