Spaces:
Sleeping
Sleeping
File size: 479 Bytes
6296560 1d3ea69 6296560 ea126ff 6296560 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 |
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() |