Grad_scrll_cst / app.py
JoPmt's picture
Update app.py
c868cf1
raw
history blame contribute delete
552 Bytes
import gradio as gr
custom_css = """
.csbar textarea { overflow-y: scroll; scrollbar-width: thin; scrollbar-color:blue; background-color: red; max-height: 200px; !important }
.csbar textarea::-webkit-scrollbar { display:block; overflow:auto; width:10px; height:10px; background-color:blue; !important }
.csbar textarea::-webkit-scrollbar-track { background: orange; !important }
"""
def plex(moo):
return "hi"+moo
textbox = gr.Textbox(elem_classes="csbar")
iface = gr.Interface(fn=plex,inputs=textbox,outputs="text",css=custom_css)
iface.launch()