Text Classifier using Gemini

Hi everyone,

I just created a simple text classifier using Gemini Pro so thought about sharing.

Cheers,
Fadi Badine

Very cool @fbadine , thanks for sharing.

I’d recommend disabling the Gradio API, so other folks don’t abuse your private google token.

demo.queue(api_open=False)
demo.launch(debug=True, share=True, show_api=False)

Thanks @radames!!

I applied the changes that you suggested.
What do those changes do in fact and how could my private google token gets abused without those please?

hi @fbadine ,

Your token is protect via Space secrets. Gradio Apps enables your app to be accessed via API, these two settings disabled it externall access via POST requests.

1 Like

Hello, sir; I have noticed you have used <div> tags. I want to understand why you have chosen <div> instead of a standard new line or line break.