Spaces:
Build error
Build error
anuragshas
commited on
Commit
•
804f76a
1
Parent(s):
215cbb5
Update app.py
Browse files
app.py
CHANGED
@@ -37,10 +37,10 @@ def get_correction(input_text):
|
|
37 |
st.markdown(f'##### Corrected text:')
|
38 |
st.write('')
|
39 |
correct_request = "http://0.0.0.0:8080/restore?input_sentence="+input_text
|
40 |
-
correct_response = requests.get(correct_request)
|
41 |
-
correct_json = json.loads(correct_response.text)
|
42 |
-
corrected_sentence = correct_json["corrected_sentence"]
|
43 |
with st.spinner('Wait for it...'):
|
|
|
|
|
|
|
44 |
result = diff_strings(corrected_sentence,input_text)
|
45 |
st.markdown(result, unsafe_allow_html=True)
|
46 |
|
|
|
37 |
st.markdown(f'##### Corrected text:')
|
38 |
st.write('')
|
39 |
correct_request = "http://0.0.0.0:8080/restore?input_sentence="+input_text
|
|
|
|
|
|
|
40 |
with st.spinner('Wait for it...'):
|
41 |
+
correct_response = requests.get(correct_request)
|
42 |
+
correct_json = json.loads(correct_response.text)
|
43 |
+
corrected_sentence = correct_json["corrected_sentence"]
|
44 |
result = diff_strings(corrected_sentence,input_text)
|
45 |
st.markdown(result, unsafe_allow_html=True)
|
46 |
|