Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -2,6 +2,7 @@ import streamlit as st
|
|
| 2 |
import time
|
| 3 |
from src.utils import paraphrase_english, paraphrase_indonesian
|
| 4 |
from src.st_style import apply_prod_style
|
|
|
|
| 5 |
|
| 6 |
|
| 7 |
# apply_prod_style(st) # NOTE: Uncomment this for production!
|
|
@@ -17,6 +18,7 @@ st.write(
|
|
| 17 |
|
| 18 |
language = st.selectbox("Language", ["English"])
|
| 19 |
input_text = st.text_area("Input your text (Max 1000 characters)", height=250, max_chars=1000)
|
|
|
|
| 20 |
|
| 21 |
if st.button("Submit") and len(input_text) > 0:
|
| 22 |
|
|
|
|
| 2 |
import time
|
| 3 |
from src.utils import paraphrase_english, paraphrase_indonesian
|
| 4 |
from src.st_style import apply_prod_style
|
| 5 |
+
import pyperclip
|
| 6 |
|
| 7 |
|
| 8 |
# apply_prod_style(st) # NOTE: Uncomment this for production!
|
|
|
|
| 18 |
|
| 19 |
language = st.selectbox("Language", ["English"])
|
| 20 |
input_text = st.text_area("Input your text (Max 1000 characters)", height=250, max_chars=1000)
|
| 21 |
+
input_text = st.text_area(pyperclip.paste(), height=250, max_chars=1000)
|
| 22 |
|
| 23 |
if st.button("Submit") and len(input_text) > 0:
|
| 24 |
|