Spaces:
Runtime error
Runtime error
Update app.py
Browse files
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()
|