Gradio Full Tutorial Build AI Web Apps with Python in Minutes | Deploy ML Models Easily!
366 views
Jun 3, 2025
Get the full source code of application here:
View Video Transcript
0:00
uh hello guys welcome to this video so
0:02
in this video I will show you a Python
0:05
library which is called as Gradio uh
0:09
Gradio is a very popular library inside
0:12
Python if you want to quickly design
0:15
user interfaces or web applications if
0:18
you are testing some kind of machine
0:20
learning
0:21
or machine learning models AI models so
0:25
if you are building any sort of
0:26
artificial intelligent kind of
0:28
application inside Python if you just uh
0:32
don't want to waste time in writing the
0:34
code for designing the user interface
0:36
then this is actually a very popular and
0:39
good library for that you just need to
0:42
concentrate on your application not
0:44
itself for building it so this is
0:47
actually a documentation given right
0:49
here
0:51
so so hello world various kinds of
0:54
examples are given right
0:56
here so you can see on their website
0:59
they
1:00
have these are some of the interfaces
1:03
that they have
1:04
designed using this you can build out
1:06
these web application so this is simple
1:09
hello world and for this to get started
1:12
simply create a python file and simply
1:14
paste this code and for this you need to
1:18
install this module which is uh gradio
1:22
because if you run your application you
1:24
will see this error message
1:30
coming so as soon as you run this Python
1:33
script it will start this uh application
1:37
on your local port number localhost 7860
1:41
so if you try to open it inside the
1:43
browser simply go
1:45
localhost
1:47
7860 so you will see the application
1:50
will look something like this it
1:52
actually
1:54
inputs the user will input their name
1:57
and click on submit and the output will
2:00
looks look something like this you will
2:02
see hello like
2:06
this so this is a very simple interface
2:10
we have the two input fields first for
2:12
receiving input and the second one for
2:15
outputting the output
2:18
so as you can see using this much of
2:21
code we have generated this complex
2:23
interface so if you're building some
2:26
kind of artificial intelligence
2:27
application then this library will be
2:30
very much helpful and you can visit
2:33
their documentation they have also given
2:35
some complex examples as well
2:39
so they do have their own custom
2:42
components as well so if you
2:44
specifically are creating an application
2:46
which contains some user input you allow
2:50
user to upload files then they have
2:53
readym made code available so you no
2:55
don't need to rewrite from scratch so
2:58
you can see that you can publish your
3:00
application as well using this command
3:02
gradio cc publish so this will publish
3:05
your application instantly so you can
3:08
run this command from the command line
3:13
so this is this is a command here so as
3:16
soon as you execute this command your
3:18
application will be
3:26
published so so these this is actually
3:29
the gradio library
3:32
so so thank you very much guys for
3:35
watching this video and also check out
3:37
my website free media tools.com uh which
3:40
contains thousands of tools
#Intelligent Personal Assistants
#Programming
#Scripting Languages
#Software