Update app.py
Browse files
app.py
CHANGED
@@ -187,6 +187,14 @@ import gradio as gr
|
|
187 |
|
188 |
with gr.Blocks() as demo:
|
189 |
gr.Markdown(Path('landing.md').read_text())
|
190 |
-
|
191 |
-
|
192 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
187 |
|
188 |
with gr.Blocks() as demo:
|
189 |
gr.Markdown(Path('landing.md').read_text())
|
190 |
+
with gr.Row():
|
191 |
+
name_input = gr.Textbox(label="Your Name", info="Let me thank you for your support to keep the bot alive 24/7 for free!")
|
192 |
+
submit_button = gr.Button("Submit")
|
193 |
+
output_text = gr.Textbox(label="Output", interactive=False)
|
194 |
+
|
195 |
+
def thank_you(name):
|
196 |
+
return f"Thank you for your support, {name}!"
|
197 |
+
|
198 |
+
submit_button.click(fn=thank_you, inputs=name_input, outputs=output_text)
|
199 |
+
|
200 |
+
demo.launch()
|