Spaces:
Sleeping
Sleeping
Upload standard.py
Browse files- standard.py +23 -0
standard.py
ADDED
|
@@ -0,0 +1,23 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# -*- coding: utf-8 -*-
|
| 2 |
+
"""standard.ipynb
|
| 3 |
+
|
| 4 |
+
Automatically generated by Colab.
|
| 5 |
+
|
| 6 |
+
Original file is located at
|
| 7 |
+
https://colab.research.google.com/drive/1RHDa_ocja09KWKneWOd2Cvq2Pl2grfdk
|
| 8 |
+
"""
|
| 9 |
+
|
| 10 |
+
import gradio as gr
|
| 11 |
+
|
| 12 |
+
with gr.Blocks() as demo:
|
| 13 |
+
input_text = gr.Textbox(label="input")
|
| 14 |
+
|
| 15 |
+
@gr.render(inputs=input_text)
|
| 16 |
+
def show_split(text):
|
| 17 |
+
if len(text) == 0:
|
| 18 |
+
gr.Markdown("## No Input Provided")
|
| 19 |
+
else:
|
| 20 |
+
for letter in text:
|
| 21 |
+
gr.Textbox(letter)
|
| 22 |
+
|
| 23 |
+
demo.launch()
|