Giter Club home page Giter Club logo

Comments (8)

abidlabs avatar abidlabs commented on May 26, 2024

Hi @suchitra-30 can you please properly format the code in your issue by wrapping it inside triple backslashes and properly indenting so that we can try to reproduce the issue?

from gradio.

suchitra-30 avatar suchitra-30 commented on May 26, 2024

I have added in notebook with format - https://notepad.pw/XlR7rvKuGuSCRZFdsrEV, please check @abidlabs as in comment box its removing indentation

from gradio.

abidlabs avatar abidlabs commented on May 26, 2024

You have included private API keys, I highly encourage you to remove them if they are valid!

from gradio.

suchitra-30 avatar suchitra-30 commented on May 26, 2024

Its not valid still i have removed them with dummy value "xxxxxxxxxxxxx"

from gradio.

freddyaboulton avatar freddyaboulton commented on May 26, 2024

Hi @suchitra-30 ! The Cancel button that comes with gr.Interface is only meant to clear the UI. If you want to add custom functionality, I suggest you create your demo with the Blocks api and create a clear button that does what you would like!

from gradio.

suchitra-30 avatar suchitra-30 commented on May 26, 2024

@freddyaboulton, thank you for your guidance. I was wondering if there's a way to remove the default clear button from my code. Is that a possibility? Also, could you please share any blogs or resources that explain how to integrate a blog API in response to a chatbot?

from gradio.

freddyaboulton avatar freddyaboulton commented on May 26, 2024

Hi @suchitra-30 !

There isn't a way to remove the clear button from an interface I believe. So you would have to use the Blocks interface.

There is a series of guides in the gradio website about building chatbots. I recommend them! Here is the first one.

https://www.gradio.app/guides/creating-a-chatbot-fast

from gradio.

freddyaboulton avatar freddyaboulton commented on May 26, 2024

There are also ready-to-use templates in huggingface spaces for building chatbot demos that interface with the LLM via API.

image

from gradio.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.