Spaces:
Runtime error
Runtime error
Steven Zhang
commited on
Commit
•
91428a3
1
Parent(s):
0ec8584
setup app
Browse files
app.py
ADDED
@@ -0,0 +1,9 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
# have to run this locally as streamlit run app.py
|
2 |
+
import streamlit as st
|
3 |
+
from translation_test import *
|
4 |
+
st.title("Translation model test")
|
5 |
+
input_sentence = st.text_input("Enter input sentence:")
|
6 |
+
if input_sentence is not None and len(input_sentence) > 0:
|
7 |
+
translated = decode_sequence(input_sentence)
|
8 |
+
st.write(translated)
|
9 |
+
input_sentence = None
|