Spaces:
Runtime error
Runtime error
Sunil Surendra Singh
commited on
Commit
·
7df406d
1
Parent(s):
f7db576
debug
Browse files
streamlit/src/tab_paraphraser.py
CHANGED
@@ -17,6 +17,9 @@ def __paraphrase(text):
|
|
17 |
payload = {"text": text}
|
18 |
response = requests.request(method="POST", url=url, headers=headers, json=payload)
|
19 |
response = response.json()
|
|
|
|
|
|
|
20 |
paraphrased_text = response["paraphrased_text"]
|
21 |
return paraphrased_text
|
22 |
|
|
|
17 |
payload = {"text": text}
|
18 |
response = requests.request(method="POST", url=url, headers=headers, json=payload)
|
19 |
response = response.json()
|
20 |
+
st.write(text)
|
21 |
+
st.write(url)
|
22 |
+
st.write(response)
|
23 |
paraphrased_text = response["paraphrased_text"]
|
24 |
return paraphrased_text
|
25 |
|