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