I have a simple input/output gradio interface:
import gradio as gr
def generate_output(input_text):
output_text = "Hello, " + input_text + "!"
return output_text
iface = gr.Interface(fn=generate_output,
inputs= gr.Textbox(label="Input Text"),#gr.Textbox(label="Input Text"),
outputs="text",
title="Basic Text Input and Output",
description="Enter some text and get a modified version of it as output")
iface.launch(share=False)
My objective is using gradio to answer questions in a sequence, like a chatbot.
When I press the submit button, how can I change the label of the input textbox from "input text" to "question 2"?