acq announcement

This commit is contained in:
Ali Abid 2021-12-16 17:15:23 +00:00
parent ff0a0d0273
commit 0cf710cc69
9 changed files with 2969 additions and 10 deletions

File diff suppressed because it is too large Load Diff

View File

@ -10,7 +10,7 @@ module.exports = {
preset: 'default'
}),
purgecss({
content: ['./src/*.html'],
content: ['./src/**/*.html'],
defaultExtractor: content => content.match(/[\w-/:]+(?<!:)/g) || []
}),
postcss_hash({

View File

@ -1,5 +1,4 @@
import os
import sys
import json
from jinja2 import Template
import requests
@ -9,7 +8,6 @@ from gradio.inputs import InputComponent
from gradio.outputs import OutputComponent
from gradio.interface import Interface
import inspect
import shutil
GRADIO_DIR = "../../"
GRADIO_GUIDES_DIR = os.path.join(GRADIO_DIR, "guides")
@ -182,7 +180,21 @@ def render_docs():
with open(os.path.join("generated", "docs", "index.html"), "w") as generated_template:
generated_template.write(output_html)
def render_other():
os.makedirs("generated", exist_ok=True)
for template_filename in os.listdir("src/other_templates"):
with open(os.path.join("src/other_templates", template_filename)) as template_file:
template = Template(template_file.read())
output_html = template.render(guide_names=guide_names)
folder_name = template_filename[:-14]
os.makedirs(os.path.join("generated", folder_name), exist_ok=True)
with open(os.path.join("generated", folder_name, "index.html"), "w", encoding='utf-8') as generated_template:
generated_template.write(output_html)
if __name__ == "__main__":
render_index()
render_guides()
render_docs()
render_other()

Binary file not shown.

After

Width:  |  Height:  |  Size: 17 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 278 KiB

View File

@ -44,6 +44,10 @@
</head>
<body class="bg-white text-gray-900 text-md sm:text-lg">
<div class="hidden w-full bg-yellow-200 text-center p-3">
🎉 We are getting acquired by Hugging Face!
<a class="font-semibold underline" href="/acquisition/">Read our announcement here.</a> 🤗
</div>
<header class="container mx-auto p-4 flex justify-between items-center gap-4 flex-col sm:flex-row">
<a href="/">
<img src="/assets/img/logo.svg" class="h-10">
@ -93,6 +97,7 @@
{% endfor %}
</div>
<div class="leading-7 max-w-full">
<p class="mb-4">If you are just getting started with Gradio, check out the <a class="link" href="/getting_started">Getting Started</a> guide.</p>
<h1 class="text-3xl font-semibold mb-4">Docs</h1>
<h2 id="creating_interfaces" class="text-2xl font-semibold mb-4">Creating Interfaces</h2>
<section class="flex flex-col gap-6">

View File

@ -59,6 +59,10 @@
</head>
<body class="bg-white text-gray-900 text-md sm:text-lg">
<div class="hidden w-full bg-yellow-200 text-center p-3">
🎉 We are getting acquired by Hugging Face!
<a class="font-semibold underline" href="/acquisition/">Read our announcement here.</a> 🤗
</div>
<header class="container mx-auto p-4 flex justify-between items-center gap-4 flex-col sm:flex-row">
<a href="/">
<img src="/assets/img/logo.svg" class="h-10">

View File

@ -26,6 +26,10 @@
</head>
<body class="bg-white text-gray-900 text-md sm:text-lg">
<div class="hidden w-full bg-yellow-200 text-center p-3">
🎉 We are getting acquired by Hugging Face!
<a class="font-semibold underline" href="/acquisition/">Read our announcement here.</a> 🤗
</div>
<header class="container mx-auto p-4 flex justify-between items-center gap-4 flex-col sm:flex-row">
<a href="/">
<img src="/assets/img/logo.svg" class="h-10">

View File

@ -0,0 +1,91 @@
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>Gradio x Huggingface</title>
<meta name="description" content="Gradio is joining Hugging Face! Read more about how we plan on working with Hugging Face to democratize access to the best machine learning applications.">
<meta name="author" content="Gradio">
<meta property="og:title" content="Gradio x Huggingface">
<meta property="og:type" content="website">
<meta property="og:url" content="https://gradio.app/acquisition">
<meta property="og:description" content="Gradio is joining Hugging Face! Read more about how we plan on working with Hugging Face to democratize access to the best machine learning applications.">
<meta name="twitter:card" content="summary_large_image">
<meta name="twitter:creator" content="@teamGradio">
<meta name="twitter:title" content="Gradio x Huggingface">
<meta name="twitter:description" content="Gradio is joining Hugging Face! Read more about how we plan on working with Hugging Face to democratize access to the best machine learning applications.">
<meta name="twitter:image" content="/assets/img/acquisition_card.png">
<link rel="icon" type="image/png" href="/assets/img/logo.png">
<link rel="stylesheet" href="/style.css">
</head>
<body class="bg-white text-gray-900 text-md sm:text-lg">
<div class="w-full bg-yellow-200 text-center p-3">
🎉 We are getting acquired by Hugging Face!
<a class="font-semibold underline" href="/acquisition/">Read our announcement here.</a> 🤗
</div>
<header class="container mx-auto p-4 flex justify-between items-center gap-4 flex-col sm:flex-row">
<a href="/">
<img src="/assets/img/logo.svg" class="h-10">
</a>
<nav class="flex gap-12 sm:gap-16">
<div class="group relative cursor-pointer font-semibold flex items-center gap-1" onClick="document.querySelector('.guide-menu').classList.toggle('flex'); document.querySelector('.guide-menu').classList.toggle('hidden');">
Guides
<svg class="h-4 w-4" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20">
<path d="M9.293 12.95l.707.707L15.657 8l-1.414-1.414L10 10.828 5.757 6.586 4.343 8z" />
</svg>
<div class="guide-menu hidden group-hover:flex group-active:flex flex-col absolute top-6 left-0 bg-white shadow w-52">
{% for guide_name, pretty_guide_name in guide_names %}
<a class="link px-4 py-2 inline-block hover:bg-gray-100" href="/{{ guide_name }}">{{ pretty_guide_name }}</a>
{% endfor %}
</div>
</div>
<a class="link" href="/docs">Docs</a>
<div class="group relative cursor-pointer font-semibold flex items-center gap-1" onClick="document.querySelector('.help-menu').classList.toggle('flex'); document.querySelector('.help-menu').classList.toggle('hidden');">
Help
<svg class="h-4 w-4" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20">
<path d="M9.293 12.95l.707.707L15.657 8l-1.414-1.414L10 10.828 5.757 6.586 4.343 8z" />
</svg>
<div class="help-menu hidden group-hover:flex flex-col absolute top-6 right-0 bg-white shadow w-52">
<a class="link px-4 py-2 inline-block hover:bg-gray-100"
href="https://github.com/gradio-app/gradio/issues/new">File an Issue</a>
<a class="link px-4 py-2 inline-block hover:bg-gray-100"
href="https://github.com/gradio-app/gradio/discussions">Discussions</a>
</div>
</div>
<a class="link hidden sm:block" href="/hosted">Account</a>
</nav>
</header>
<div class="container mx-auto px-4 mb-12">
<div class="prose prose-lg max-w-none">
<h2>We are joining Hugging Face!</h2>
<p class="italic">Gradio is joining Hugging Face! By acquiring Gradio, a machine learning startup, Hugging Face will be able to offer users, developers, and data scientists the tools needed to get to high level results and create better models and tools...</p>
<p>Hmm, paragraphs about acquisitions like the one above are so common that an algorithm could write them. In fact, one did!! This first paragraph was written with the <a href="https://huggingface.co/spaces/abidlabs/The-Acquisition-Post-Generator">Acquisition Post Generator</a>, a machine learning demo on Hugging Face Spaces. You can run it yourself in your browser: provide the names of any two companies and you'll get a reasonable-sounding start to an article announcing their acquisition!</p>
<p>The Acquisition Post Generator was built using our open-source Gradio library -- it is just one of our recent collaborations with Hugging Face. And I'm excited to announce that these collaborations are culminating in... 🥁 <strong>Hugging Face's acquisition of Gradio</strong> (so yes, that first paragraph might have been written by an algorithm but it's true!)</p>
<img class="max-w-4xl mx-auto my-6" src="/assets/img/acquisition_screenshot.png">
<p>As one of the founders of Gradio, I couldn't be more excited about the next step in our journey. I still remember clearly how we started in 2019: as a PhD student at Stanford, I struggled to share a medical computer vision model with one of my collaborators, who was a doctor. I needed him to test my machine learning model, but he didn't know Python and couldn't easily run the model on his own images. I envisioned a library that could make it super simple for machine learning engineers to build and share demos of computer vision models, which in turn would lead to better feedback and more reliable models 🔁</p>
<p>I recruited my talented housemates Ali Abdalla, Ali Abid, and Dawood Khan to release the first version of Gradio in 2019. We steadily expanded to cover more areas of machine learning including text, speech, and video. We found that it wasn't just researchers who needed to share machine learning models: interdisciplinary teams in industry, from startups to public companies, were building models and needed to debug them internally or showcase them externally. Gradio could help with both. Since we first released the library, more than 300,000 demos have been built with Gradio. We couldn't have done this without our community of contributors, our supportive investors, and the amazing Ahsen Khaliq who joined our company this year. </p>
<p>Demos and GUIs built with Gradio give the power of machine learning to more and more people because they allow non-technical users to access, use, and give feedback on models. And our acquisition by Hugging Face is the next step in this ongoing journey of accessibility. Hugging Face has already radically democratized machine learning so that any software engineer can use state-of-the-art models with a few lines of code. By working together with Hugging Face, we're taking this even further so that machine learning is accessible to literally anyone with an internet connection and a browser. With Hugging Face, we are going to keep growing Gradio and make it the best way to share your machine learning model with anyone, anywhere 🚀</p>
<p>In addition to the shared mission of Gradio and Hugging Face, what delights me is the team that we are joining. Hugging Face's remarkable culture of openness and innovation is well-known. Over the past few months, I've gotten to know the founders as well: they are wonderful people who genuinely care about every single person at Hugging Face and are willing to go to bat for them. On behalf of the entire Gradio team, we couldn't be more thrilled to be working with them to build the future of machine learning 🤗</p>
<p>Also: <a class="link" href="https://apply.workable.com/huggingface/">we are hiring!!</a> ❤️</p>
</div>
</div>
<footer class="container mx-auto p-4 flex justify-between items-center">
<img src="/assets/img/logo.svg" class="h-10">
<div class="flex gap-4">
<a class="hover:opacity-75 transition" href="https://twitter.com/Gradio">
<img src="/assets/img/twitter.svg" class="h-8">
</a>
<a class="hover:opacity-75 transition" href="https://github.com/gradio-app/gradio">
<img src="/assets/img/github.svg" class="h-8">
</a>
</div>
</footer>
</body>
</html>