research14 commited on
Commit
c6c82c9
·
1 Parent(s): d901169
Files changed (1) hide show
  1. app.py +2 -3
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.Component(custom_interface, type="html"), # Use custom HTML interface
21
- outputs=gr.Component("Output will be displayed here.", type="html"),
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