import gradio as gr | |
def reply(message, history): | |
purged = client.purge_by_url([message]) | |
answer = str(purged.result()) | |
return answer | |
Conversing = gr.ChatInterface(reply, chatbot=gr.Chatbot(height=600), retry_btn=None,theme=gr.themes.Monochrome(), | |
title = 'Akamai Purge Cache', description = "Enter Brand.com URL for purging" ,undo_btn = None, clear_btn = None, css='footer {visibility: hidden}').launch() | |
if __name__ == "__main__": | |
Conversing.launch() |