bluejoyq

idiots cut~

......@@ -39,7 +39,8 @@ apiRequest.ETRI = async ( query, argument ) => {
return new Promise( ( resolve, reject ) => {
let apiReqJson = apiRequestJsonFrame;
apiReqJson.argument = argument;
let apiReqOption = { headers: {
let apiReqOption = {
headers: {
"Accept": "application/json",
"Content-Type": "application/json",
},uri : URL.ETRI + query, body : JSON.stringify( apiReqJson ) };
......
......@@ -9,6 +9,9 @@ model = Doc2Vec.load("doc2vec.model")
app = Flask(__name__)
@app.route('/')
def test():
print('test')
@app.route('/analyze', methods=['POST'])
def sendreq():
......
......@@ -47,7 +47,10 @@ export default RateBar = (props) => {
},
{
value: (100-(props.score.key+props.score.fix)),
key : ""
key : "",
svg: {
fill : "rgba(0,0,0,0)",
},
}
]}
innerRadius={"50%"}
......@@ -76,7 +79,6 @@ const styles = StyleSheet.create({
width: '100%',
flexDirection:'row',
justifyContent:'center',
marginTop : 3,
},
colorContainer:{
position:"absolute",
......@@ -102,7 +104,7 @@ const styles = StyleSheet.create({
flexDirection:'row',
justifyContent:"flex-start",
alignItems:'flex-start',
marginBottom: 10,
marginBottom: 5,
},
chart:{
height: 125,
......@@ -134,8 +136,8 @@ const styles = StyleSheet.create({
borderRadius: 5
},
Text:{
fontSize: 22,
marginBottom:5,
fontSize: 20,
marginBottom:2,
fontFamily:"Bold",
},
message:{
......
......@@ -43,7 +43,7 @@ const RateMessage = ({keywordText, score }) => {
const styles = StyleSheet.create({
surface: {
padding: 8,
flex: 0.225,
flex: 0.215,
width: '95%',
alignItems: 'center',
justifyContent: 'center',
......
......@@ -46,7 +46,7 @@ const RateSentence = ({originalText, fixedText, keywordText }) => {
const styles = StyleSheet.create({
surface: {
padding: 8,
flex: 0.225,
flex: 0.235,
width: '95%',
alignItems: 'center',
justifyContent: 'center',
......
......@@ -35,7 +35,7 @@ export const submit = (text) => async (dispatch) => {
},10000);
try{
// const response = await readTest()
//const response = await readTest()
const response = await sendSearch(text.nativeEvent.text);
// 에러시 error throw
......@@ -45,9 +45,10 @@ export const submit = (text) => async (dispatch) => {
await sqlite.insert(tempScore.full);
let pastRecords = await sqlite.select();
clearTimeout(timer);
dispatch( { type:SUCCESS, result:response, pastRecords: pastRecords, score:tempScore})
clearTimeout(timer);
}
catch(err){
Alert.alert(
......