Spaces:
Runtime error
Runtime error
Commit
·
c6c82c9
1
Parent(s):
d901169
small fix
Browse files
app.py
CHANGED
@@ -1,5 +1,4 @@
|
|
1 |
import gradio as gr
|
2 |
-
import random
|
3 |
|
4 |
def echo_text(input_text):
|
5 |
return input_text
|
@@ -17,8 +16,8 @@ custom_interface = """
|
|
17 |
|
18 |
iface = gr.Interface(
|
19 |
fn=echo_text,
|
20 |
-
inputs=gr.
|
21 |
-
outputs=gr.
|
22 |
live=True
|
23 |
)
|
24 |
|
|
|
1 |
import gradio as gr
|
|
|
2 |
|
3 |
def echo_text(input_text):
|
4 |
return input_text
|
|
|
16 |
|
17 |
iface = gr.Interface(
|
18 |
fn=echo_text,
|
19 |
+
inputs=gr.HTML(custom_interface), # Use custom HTML interface
|
20 |
+
outputs=gr.Textbox("Output will be displayed here.", type="output"),
|
21 |
live=True
|
22 |
)
|
23 |
|