test4
Browse files
app.py
CHANGED
|
@@ -674,6 +674,7 @@ footer = gr.Markdown(footerMD, elem_classes="footer")
|
|
| 674 |
with gr.Blocks() as app:
|
| 675 |
demo.render()
|
| 676 |
with gr.Row():
|
|
|
|
| 677 |
for l in ["debug", "info", "warning", "error", "critical"]:
|
| 678 |
button = gr.Button(f"log as {l}")
|
| 679 |
button.click(fn=create_log_handler(l), inputs=text)
|
|
|
|
| 674 |
with gr.Blocks() as app:
|
| 675 |
demo.render()
|
| 676 |
with gr.Row():
|
| 677 |
+
text = gr.Textbox(label="Enter text to write to log file")
|
| 678 |
for l in ["debug", "info", "warning", "error", "critical"]:
|
| 679 |
button = gr.Button(f"log as {l}")
|
| 680 |
button.click(fn=create_log_handler(l), inputs=text)
|