Spaces:
Runtime error
Runtime error
import gradio as gr | |
# Define a function that echoes the input text | |
def echo_text(input_text): | |
return input_text | |
custom_css = """ | |
.gr-textbox { | |
background-color: rgb(79, 129, 145); | |
color: #333; | |
font-size: 16px; | |
border: 2px solid #666; | |
padding: 10px; | |
} | |
.gr-textbox:focus { | |
border: 2px solid #009688; | |
} | |
""" | |
iface = gr.Interface( | |
fn=echo_text, | |
inputs=gr.Textbox(text="Enter text here...", style=custom_css), | |
outputs=gr.Textbox(style=custom_css), | |
live=True, | |
title="LLM Evaluator with Linguistic Scrutiny", | |
width=500, | |
height=200, | |
theme="dark" # You can use "dark" for a dark theme | |
) | |
iface.launch() |