Steven Zhang commited on
Commit
91428a3
1 Parent(s): 0ec8584
Files changed (1) hide show
  1. app.py +9 -0
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