File size: 14,262 Bytes
5b783e1
 
 
 
 
 
 
 
 
3fb0f50
f9585d9
f28134f
f9585d9
284c03b
f9585d9
78e2ade
 
35815e9
f9585d9
 
15ae5a4
5b2e695
d3e4486
67348ca
 
 
c4da20f
 
0f6f6e2
c4da20f
 
93fce5a
634e8d5
9eb0113
35d4e16
35815e9
f9585d9
22f02e6
f9585d9
 
a99d91a
154442a
 
 
 
 
f9585d9
f28134f
8fb5a7a
cb25ec0
 
 
dc68598
 
f28134f
dc68598
 
6dc17e4
5a6bb94
 
35815e9
 
 
dd3a84d
 
5a6bb94
6dc17e4
818e4ca
18ad367
cea0d97
fbef3c9
 
 
 
 
 
cea0d97
a677d33
8e32e96
5a6bb94
98445ef
f28134f
5a6bb94
d7871d4
6ac21e3
8e32e96
4927150
d7871d4
ecd671e
df38420
4927150
b214926
4894476
 
 
9106789
df38420
9f49bec
5a6bb94
acb3f92
29b7ad5
a7ee5e8
 
10fc838
 
 
 
 
a7ee5e8
10fc838
 
 
 
 
 
 
9ab70e9
 
 
 
bc94905
 
 
 
 
63c11ec
acb3f92
06c420c
4894476
06c420c
 
 
2e31834
 
63c11ec
06c420c
63c11ec
8d2372b
8fb5a7a
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
---
title: README
emoji: 💻
colorFrom: indigo
colorTo: gray
sdk: static
pinned: false
---

<div class="grid lg:grid-cols-2 gap-x-4">
   <h2 class="my-8 lg:col-span-2" style="font-size:20px; font-weight:bold">
        Welcome to the <a href="https://gradio.app/" target="_blank" style="text-decoration: underline">Gradio</a> Blocks Party 🥳  
   </h2>
   <img class="lg:col-span-2" src="https://huggingface.co/spaces/Gradio-Blocks/README/resolve/main/banner.png" alt="Gradio Banner" style="margin:10px">
   <p class="lg:col-span-2">
    We are happy to invite you to the Gradio Blocks Party - a community event in which we will create <b>interactive demos</b> for state-of-the-art machine learning models. Demos are powerful because they allow anyone — not just ML engineers — to try out models in the browser, give feedback on predictions, identify trustworthy models. The event will take place from May 16th to 31st. We will be organizing this event on <a href="https://github.com/huggingface/community-events" target="_blank" style="text-decoration: underline">Github</a> and the <a href="https://discord.com/invite/feTf9x3ZSB" target="_blank" style="text-decoration: underline">Hugging Face discord channel</a>. Prizes will be given at the end of the event, see: <a href="#Prizes" target="_blank" style="text-decoration: underline">Prizes</a> </p><br />
   
   <p class="lg:col-span-2"> We will be building demos using the new Gradio Blocks API. Blocks allows you to build web-based demos in a flexible way using the <a href="https://www.gradio.app">Gradio library</a>. Gradio is a popular choice for building demos for machine learning models, as it allows you to create UIs from Python. For example, here is a UI for Dall-E Mini using Gradio Blocks:
   </p>
   <br />
   <video class="lg:col-span-2"
 controls autoplay>
   <source src="https://huggingface.co/spaces/Gradio-Blocks/README/resolve/main/dalle-short.mov" type="video/mp4">
   Your browser does not support the video tag.
   </video>
   <br />   
   <h3  class="my-8 lg:col-span-2" style="font-size:20px; font-weight:bold">What is Gradio?</h3>
   <p class="lg:col-span-2">
     Gradio is a Python library that allows you to quickly build web-based machine learning demos, data science dashboards, or other kinds of web apps, entirely in Python. These web apps can be launched from wherever you use Python (jupyter notebooks, colab notebooks, Python terminal, etc.) and shared with anyone instantly using Gradio's auto-generated share links. To learn more about Gradio see the Getting Started Guide:  <a href="https://gradio.app/getting_started/" target="_blank" style="text-decoration: underline">https://gradio.app/getting_started/</a> and the new Course on Huggingface about Gradio:  <a href="https://huggingface.co/course/chapter9/1?fw=pt" style="text-decoration: underline" target="_blank">Gradio Course</a>.
   </p>
   <br />
   <p class="lg:col-span-2">Gradio can be installed via pip and comes preinstalled in Hugging Face Spaces, the latest version of Gradio can be set in the README in spaces by setting the sdk_version for example <code>sdk_version: 3.0b8</code></p>
   <br />
   <p class="lg:col-span-2"><code>pip install gradio</code> to install gradio locally</p>
   <br />
   <h3  class="my-8 lg:col-span-2" style="font-size:20px; font-weight:bold">What is Blocks?</h3>
   <p class="lg:col-span-2">
     <code>gradio.Blocks</code> is a low-level API that allows you to have full control over the data flows and layout of your application. You can build very complex, multi-step applications using Blocks.
     If you have already used gradio.Interface, you know that you can easily create fully-fledged machine learning demos with just a few lines of code. The Interface API is very convenient but in some cases may not be sufficiently flexible for your needs. For example, you might want to:
   </p>
   <ul class="lg:col-span-2">
         <li class="my-4">Group together related demos as multiple tabs in one web app</li>
         <li class="my-4">Change the layout of your demo instead of just having all of the inputs on the left and outputs on the right</li>
         <li class="my-4">Have multi-step interfaces, in which the output of one model becomes the input to the next model, or have more flexible data flows in general</li>
         <li class="my-4">Change a component's properties (for example, the choices in a Dropdown) or its visibilty based on user input</li>
   </ul>
   <br />
   <p class="lg:col-span-2">to learn more about Blocks see the guide <a href="   https://www.gradio.app/introduction_to_blocks/" target="_blank" style="text-decoration: underline">https://www.gradio.app/introduction_to_blocks/</a></p> 
   <br />
   <h3 class="my-8 lg:col-span-2" style="font-size:20px; font-weight:bold">What is Hugging Face Spaces?</h2>
   <p class="lg:col-span-2">Spaces are a simple way to host ML demo apps directly on your profile or your organization’s profile on Hugging Face. This allows you to create your ML portfolio, showcase your projects at conferences or to stakeholders, and work collaboratively with other people in the ML ecosystem. Learn more about spaces <a href="https://huggingface.co/docs/hub/spaces" style="text-decoration: underline">here</a>.</p>
   <br />
   <h3  class="my-8 lg:col-span-2" style="font-size:20px; font-weight:bold">How Does Gradio and Hugging Face work together?</h3>
   <p class="lg:col-span-2">
      Hugging Face Spaces is a free hosting option for Gradio demos. Spaces comes with 3 SDK options: Gradio, Streamlit and Static HTML demos. Spaces can be public or private and the workflow is similar to github repos. There are over 2000+ Gradio spaces currently on Hugging Face. Learn more about spaces here:  <a href="https://huggingface.co/docs/hub/spaces" target="_blank" style="text-decoration: underline">https://huggingface.co/docs/hub/spaces</a> 
   </p>
   <br />
   <h3 class="my-8 lg:col-span-2" style="font-size:20px; font-weight:bold">Event Plan</h3>
   <p class="lg:col-span-2">main components of the event consist of:</p>
   <ul class="lg:col-span-2" style="list-style: circle inside">
      <li class="my-4">1. Learning about <a href="https://gradio.app/" target="_blank" style="text-decoration: underline">Gradio</a> and the new <a href="https://www.gradio.app/introduction_to_blocks/" target="_blank" style="text-decoration: underline">Blocks</a> API</li>
      <li class="my-4">2. Building your own Blocks demo using <a href="https://gradio.app/" target="_blank" style="text-decoration: underline">Gradio</a> and <a href="https://huggingface.co/spaces" target="_blank" style="text-decoration: underline">Hugging Face Spaces</a></li>
      <li class="my-4">3. Submitting your demo on Spaces to the <a href="https://gradio.app/" target="_blank" style="text-decoration: underline">Gradio Blocks Party Organization</a></li>
      <li class="my-4">4. Share your blocks demo with a permanent shareable link</li>
      <li class="my-4">5. Win Prizes</li>
   </ul>
   <br />
   <h3 class="my-8 lg:col-span-2" style="font-size:20px; font-weight:bold">Example spaces using Blocks</h3>
   <img class="my-8 lg:col-span-2" alt="mindseye-lite" src="https://huggingface.co/spaces/Gradio-Blocks/README/resolve/main/mindseye-lite.png">
  <ul class="lg:col-span-2" style="list-style: circle inside">
      <li  class="my-4"><a href="https://huggingface.co/spaces/dalle-mini/dalle-mini" style="text-decoration: underline">dalle-mini</a>(<a href="https://huggingface.co/spaces/dalle-mini/dalle-mini/blob/main/app/gradio/app.py" style="text-decoration: underline">Code</a>)</li>
      <li  class="my-4"><a href="https://huggingface.co/spaces/multimodalart/mindseye-lite" style="text-decoration: underline">mindseye-lite</a>(<a href="https://huggingface.co/spaces/multimodalart/mindseye-lite/blob/main/app.py" style="text-decoration: underline">Code</a>)</li>
      <li  class="my-4"><a href="https://huggingface.co/spaces/akhaliq/ArcaneGAN-blocks" style="text-decoration: underline">ArcaneGAN-blocks</a>(<a href="https://huggingface.co/spaces/akhaliq/ArcaneGAN-blocks/blob/main/app.py" style="text-decoration: underline">Code</a>)</li>
      <li  class="my-4"><a href="https://huggingface.co/spaces/merve/gr-blocks" style="text-decoration: underline">gr-blocks</a>(<a href="https://huggingface.co/spaces/merve/gr-blocks/blob/main/app.py" style="text-decoration: underline">Code</a>)</li>
      <li  class="my-4"><a href="https://huggingface.co/spaces/osanseviero/tortoisse-tts" style="text-decoration: underline">tortoisse-tts</a>(<a href="https://huggingface.co/spaces/osanseviero/tortoisse-tts/blob/main/app.py" style="text-decoration: underline">Code</a>)</li>
      <li  class="my-4"><a href="https://huggingface.co/spaces/osanseviero/tortoisse-tts" style="text-decoration: underline">CaptchaCracker</a>(<a href="https://huggingface.co/spaces/akhaliq/CaptchaCracker/blob/main/app.py" style="text-decoration: underline">Code</a>)</li>
   </ul>
   <br />
   <h3 class="lg:col-span-2">To participate in the event</h3>
   <ul class="lg:col-span-2" style="list-style: circle inside">
      <li class="my-4">Join the organization for Blocks event:<a href="https://huggingface.co/organizations/Gradio-Blocks/share/YyEmWbViPRZypvGSnZzGxmKEnJqnOqgKKx" style="text-decoration: underline">https://huggingface.co/organizations/Gradio-Blocks/share/YyEmWbViPRZypvGSnZzGxmKEnJqnOqgKKx</a></li>
      <li class="my-4">Join the discord:<a href="https://discord.com/invite/feTf9x3ZSB" style="text-decoration: underline">https://discord.com/invite/feTf9x3ZSB</a> </li>
   </ul>
   <p class="lg:col-span-2">Participants will be building and sharing Gradio demos using the Blocks feature. We will share a list of ideas of spaces that can be created using blocks or participants are free to try out their own ideas. At the end of the event, spaces will be evaluated and prizes will be given.</p>
   <br />
   <h3 class="lg:col-span-2">Potential ideas for creating spaces: </h3>
   <ul class="lg:col-span-2" style="list-style: circle inside;padding-left: 40px;">
      <li class="my-4">Trending papers from <a href="https://paperswithcode.com/" style="text-decoration: underline">https://paperswithcode.com/</a></li>
      <li class="my-4">Models from huggingface model hub: <a href="https://huggingface.co/models" style="text-decoration: underline">https://huggingface.co/models</a></li>
      <li class="my-4">Models from other model hubs
         <ul class="lg:col-span-2" style="list-style: circle inside;padding-left: 40px;">
            <li class="my-4">Tensorflow Hub: see example Gradio demos at <a href="https://huggingface.co/tensorflow" style="text-decoration: underline">https://huggingface.co/tensorflow</a></li>
            <li class="my-4">Pytorch Hub: see example Gradio demos at <a href="https://huggingface.co/pytorch" style="text-decoration: underline">https://huggingface.co/pytorch</a></li>
            <li class="my-4">ONNX model Hub: see example Gradio demos at <a href="https://huggingface.co/onnx" style="text-decoration: underline">https://huggingface.co/onnx</a></li>
            <li class="my-4">PaddlePaddle Model Hub: see example Gradio demos at <a href="https://huggingface.co/PaddlePaddle" style="text-decoration: underline">https://huggingface.co/PaddlePaddle</a></li>
         </ul>
      </li>
      <li class="my-4">participant ideas, try out your own ideas</li>
   </ul>
   <br />
   <h3 class="my-8 lg:col-span-2" style="font-size:20px; font-weight:bold" id="Prizes">Prizes</h3>
  <ul class="lg:col-span-2" style="list-style: circle inside;padding-left: 40px;">
   <li class="my-4">1st place winner based on likes<ul class="lg:col-span-2" style="list-style: circle inside;padding-left: 40px;">
   <li class="my-4"><a href="https://huggingface.co/pricing">Hugging Face PRO subscription</a> for 1 year</li>
   <li class="my-4">Embedding your Gradio Blocks demo in the Gradio Blog</li>
   <li class="my-4">Gradio Team Office Hour</li>
   </ul>
   </li>
   <li class="my-4">top 10 winners based on likes<ul class="lg:col-span-2" style="list-style: circle inside;padding-left: 40px;">
   <li class="my-4">Swag from <a href="https://huggingface.myshopify.com/">Hugging Face merch shop</a>: t-shirts, hoodies, mugs of your choice</li>
   </ul>
   </li>
   <li class="my-4">top 25 winners based on likes<ul class="lg:col-span-2" style="list-style: circle inside">
   <li class="my-4"><a href="https://huggingface.co/pricing">Hugging Face PRO subscription</a> for 1 month</li>
   </ul>
   </li>
   <li class="my-4">Blocks event badge on HF for all participants!</li>
   </ul>
   <br />
   <h3 class="my-8 lg:col-span-2" style="font-size:20px; font-weight:bold">Prizes Criteria</h3>
   <ul class="lg:col-span-2" style="list-style: circle inside">
      <li class="my-4">Staff Picks</li>
      <li class="my-4">Most liked Spaces</li>
      <li class="my-4">Community Pick (voting)</li>
      <li class="my-4">Most Creative Space (voting)</li>
      <li class="my-4">Most Educational Space (voting)</li>
   </ul>
   <h3 class="my-8 lg:col-span-2" style="font-size:20px; font-weight:bold">Creating a Gradio demo on Hugging Face Spaces</h3>
   <p class="lg:col-span-2">Once a model has been picked from the choices above, you can share a model in a Space using Gradio. Read more about how to add Gradio spaces: <a href="https://huggingface.co/blog/gradio-spaces" style="text-decoration: underline">https://huggingface.co/blog/gradio-spaces</a></p>
   <p class="lg:col-span-2">Steps to add Gradio Spaces to the Gradio Blocks Party org</p>
   <ul class="lg:col-span-2" style="list-style: circle inside">
      <li class="my-4">Create a account on Hugging Face</li>
      <li class="my-4">Join the Gradio Blocks Party Organization by clicking "Join Organization" button in the organization page or using the shared link above</li>
      <li class="my-4">Once your request is approved, add your space using the Gradio SDK and share the link with the community!
   </li>
   </ul>
  <h3 class="my-8 lg:col-span-2" style="font-size:20px; font-weight:bold">LeaderBoard for Most Popular Blocks Event Spaces</h3>
  <p class="lg:col-span-2">See Leaderboard: https://huggingface.co/spaces/Gradio-Blocks/Leaderboard</p>
</div>