egoing commited on
Commit
7cd92f7
Β·
1 Parent(s): 87451e6

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -3
app.py CHANGED
@@ -12,15 +12,14 @@ en2koDict = {
12
  }
13
  dict = {"ko2en":ko2enDict, "en2ko":en2koDict}
14
  def trans(type, word):
15
- time.sleep(1)
16
- time.sleep(1)
17
  return dict[type][word]
18
 
19
  app = gr.Interface(
20
  fn=trans,
21
  inputs=[gr.Radio(["ko2en", "en2ko"]), gr.Textbox(placeholder="검색어")],
22
  outputs="text",
23
- examples=[["ko2en", "μ‚¬μž"]]
 
24
  )
25
 
26
  app.launch()
 
12
  }
13
  dict = {"ko2en":ko2enDict, "en2ko":en2koDict}
14
  def trans(type, word):
 
 
15
  return dict[type][word]
16
 
17
  app = gr.Interface(
18
  fn=trans,
19
  inputs=[gr.Radio(["ko2en", "en2ko"]), gr.Textbox(placeholder="검색어")],
20
  outputs="text",
21
+ examples=[["ko2en", "μ‚¬μž"]],
22
+ flag_allow="auto"
23
  )
24
 
25
  app.launch()