Update app.py
Browse files
app.py
CHANGED
|
@@ -22,7 +22,7 @@ st.write("**-Developed at Speech and Language Processing Lab, Center for Artific
|
|
| 22 |
# ===========================================================================
|
| 23 |
|
| 24 |
def translate(source):
|
| 25 |
-
proxy = xmlrpc.client.ServerProxy("http://
|
| 26 |
print(source)
|
| 27 |
text_translate = proxy.translate({"text":source}) ["text"]
|
| 28 |
print(text_translate)
|
|
|
|
| 22 |
# ===========================================================================
|
| 23 |
|
| 24 |
def translate(source):
|
| 25 |
+
proxy = xmlrpc.client.ServerProxy("http://localhost:8083/RPC2")
|
| 26 |
print(source)
|
| 27 |
text_translate = proxy.translate({"text":source}) ["text"]
|
| 28 |
print(text_translate)
|