Spaces:
Runtime error
Runtime error
Commit
·
83c4c0e
1
Parent(s):
1f72636
revert changes
Browse files
app.py
CHANGED
@@ -1,26 +1,31 @@
|
|
1 |
import gradio as gr
|
2 |
|
|
|
3 |
def echo_text(input_text):
|
4 |
return input_text
|
5 |
|
6 |
-
|
7 |
-
|
8 |
-
|
9 |
-
|
10 |
-
|
11 |
-
|
12 |
-
|
13 |
-
|
14 |
-
|
15 |
-
|
16 |
-
|
17 |
"""
|
18 |
|
19 |
iface = gr.Interface(
|
20 |
fn=echo_text,
|
21 |
-
inputs=gr.
|
22 |
-
outputs=gr.Textbox(
|
23 |
-
live=True
|
|
|
|
|
|
|
|
|
24 |
)
|
25 |
|
26 |
-
iface.launch()
|
|
|
1 |
import gradio as gr
|
2 |
|
3 |
+
# Define a function that echoes the input text
|
4 |
def echo_text(input_text):
|
5 |
return input_text
|
6 |
|
7 |
+
custom_css = """
|
8 |
+
.gr-textbox {
|
9 |
+
background-color: rgb(79, 129, 145);
|
10 |
+
color: #333;
|
11 |
+
font-size: 16px;
|
12 |
+
border: 2px solid #666;
|
13 |
+
padding: 10px;
|
14 |
+
}
|
15 |
+
.gr-textbox:focus {
|
16 |
+
border: 2px solid #009688;
|
17 |
+
}
|
18 |
"""
|
19 |
|
20 |
iface = gr.Interface(
|
21 |
fn=echo_text,
|
22 |
+
inputs=gr.Textbox(text="Enter text here...", style=custom_css),
|
23 |
+
outputs=gr.Textbox(style=custom_css),
|
24 |
+
live=True,
|
25 |
+
title="LLM Evaluator with Linguistic Scrutiny",
|
26 |
+
width=500,
|
27 |
+
height=200,
|
28 |
+
theme="dark" # You can use "dark" for a dark theme
|
29 |
)
|
30 |
|
31 |
+
iface.launch()
|