Spaces:
Runtime error
Runtime error
ffreemt
commited on
Commit
·
fb846d4
1
Parent(s):
df320fd
Update app.py
Browse files
app.py
CHANGED
@@ -27,12 +27,12 @@ def gtr(text, from_lang, to_lang):
|
|
27 |
if __name__ == "__main__":
|
28 |
_ = dedent("""
|
29 |
Paste text here (max. 5000 chars)
|
30 |
-
(this interface can be accessed via curl -
|
31 |
""").strip()
|
32 |
iface = gr.Interface(
|
33 |
fn=gtr,
|
34 |
inputs=[
|
35 |
-
gr.Textbox(placeholder=
|
36 |
gr.Textbox(label="from_lang", value="en", lines=1),
|
37 |
gr.Textbox(label="to_lang", value="zh", lines=1),
|
38 |
],
|
|
|
27 |
if __name__ == "__main__":
|
28 |
_ = dedent("""
|
29 |
Paste text here (max. 5000 chars)
|
30 |
+
(this interface can be accessed via curl https://hf.space/embed/mikeee/gradio-gtr/+/api/predict -d'{"data": ["hello you", "en", "zh"]}'
|
31 |
""").strip()
|
32 |
iface = gr.Interface(
|
33 |
fn=gtr,
|
34 |
inputs=[
|
35 |
+
gr.Textbox(placeholder="Paste text here (max. 5000 chars)", lines=7,),
|
36 |
gr.Textbox(label="from_lang", value="en", lines=1),
|
37 |
gr.Textbox(label="to_lang", value="zh", lines=1),
|
38 |
],
|