esgClassifier / app.py
dammy's picture
Update app.py
1d3ea69
raw
history blame
No virus
479 Bytes
import gradio as gr
def generate_text(text):
return 'success'
# Define the Gradio interface.
chat_box = gr.inputs.Textbox(label="Chat Box")
chat_button = gr.Button("Send")
chat_response = gr.outputs.Textbox(label="Chat Response")
# Connect the inputs and outputs to the generate_text function.
chat_button.click(generate_text, chat_box, chat_response)
# Launch the Gradio interface.
interface = gr.Interface([chat_box, chat_button], [chat_response])
interface.launch()