Spaces:
Runtime error
Runtime error
ffreemt
commited on
Commit
·
b02b23b
1
Parent(s):
0c2094b
Update app.py
Browse files
app.py
CHANGED
@@ -27,7 +27,7 @@ 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 `import requests; print(requests.post("https://hf.space/embed/mikeee/gradio-gtr/+/api/predict", json={"data": ["hello world", "en", "zh"]}).json()["data"][0]) # '你好世界'`
|
31 |
""").strip()
|
32 |
iface = gr.Interface(
|
33 |
fn=gtr,
|
|
|
27 |
if __name__ == "__main__":
|
28 |
_ = dedent("""
|
29 |
Paste text here (max. 5000 chars)
|
30 |
+
(this interface can be accessed via `import requests; print(requests.post("https://hf.space/embed/mikeee/gradio-gtr/+/api/predict", json={"data": ["hello world", "en", "zh"]}).json()["data"][0]) # '你好世界')`
|
31 |
""").strip()
|
32 |
iface = gr.Interface(
|
33 |
fn=gtr,
|