Gradio Update Production Model

I went through recently with Tanishq blog which is part of Lesson 2 Part 1 2022. There is an update in following code I have done

import gradio as gr
gr.Interface(fn=predict, inputs=gr.inputs.Image(shape=(512, 512)), outputs=gr.outputs.Label(num_top_classes=3)).launch(share=True)

The new Version is following


import gradio as gr
gr.Interface(
    fn=predict,
    inputs=gr.Image(type="pil"),
    outputs=gr.Label(num_top_classes=3),
).launch(share=True)

Anyone face the same issue will find it helpful

Output is following :

Another solution go to documentation Interface gradio

I wrote this code

demo = gr.Interface(fn=predict, inputs="image", outputs="label")
demo.launch()

Check out my Full Kaggle Notebook Link Here

Hi Bro How are you ? I’m looking for an IA developper for my Health App.

What do you need? I worked for Surgical Data Science Projects. My recent work was patient activity monitoring system with time series models. It was National Health Service with collaboration of University College London. I have around 5 years expereince in AI implementation in healthcare domain. Feel free to ask anything brother.

i m developping with a team a e-learning Webapp on the medical fields, and i want to integrate some options for the doctors. Like IA to catch up on my web app and on the live stream

Hi good to hear please write down in details the use case. What kind of options for the doctors you need. One option is joining the platform on live stream. How you want them to join for either the specifice courses they are member of? or general streaming or both?

What are other options or features for doctors you want to provide them in your web App?

Tell me about its backend and front-end techstack which programming language and framework you have developed it so far?

in fact I would like to integrate a sort of speech to text medical translation or while he is speaking and there are subtitles, the student can press on the word and have a complete medical translation, with examples of medications

There are lots of speech to text Api’s you can use in that case. you can inbox me and we can see your app and give you advice.

You always welcome :slight_smile:

okay okay and do you have some advice or an AI that will be interessting for the medical fields on the e-learning ?
i will receive the app on february

There can be lot of application for example 2D to 3D visualisation of pictures in notes. AI detection system to identify disease parts in system for example “cancer area in liver system”. At the same with RAG they can have opportunity to search out the related publication or reference. student can review it . Ai can summarise the publication and highlight the points. Image to Video visualisation as well. Augmented reality system integration would be so much helpful. Let me know if I can help you more?

in fact my teachers give lessons in physiology and anatomy through my platform in live virtual classrooms. I would like to integrate an AI which would be essential for the student but also the professor in Medicine