-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathapp.py
100 lines (79 loc) · 1.74 KB
/
app.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
# uWu translator using python
import streamlit as st
import generateUwU
def show_output(final_pred):
st.text("""""")
st.write(
"""
## 🎯 Copy and paste, wherever you want.
"""
)
st.markdown(f'#### {final_pred}')
st.write(
"""
## 👁️ If you like it try another line. You can also make a donation so that cool projects like these can stay afloat. Donate [here](https://www.iamroyakash.com/donate)
"""
)
def main():
st.markdown(
"<h1 style='text-align: center; color: Red;'>uWu Translator</h1>",
unsafe_allow_html=True,
)
st.text("""""")
st.write(
"""
## About
"""
)
st.markdown("<hr>", unsafe_allow_html=True)
st.write(
"""
Create your brand new uWu quote with my tools. Thanks for using.
"""
)
st.markdown(
"This project is made by <a href='https://www.iamroyakash.com'><b>theroyakash</b></a>",
unsafe_allow_html=True,
)
st.text("""""")
st.write(
"""
## Put your quote in the text field below and hit run.
"""
)
st.markdown("<hr>", unsafe_allow_html=True)
st.text("""""")
inputText = st.text_input("Your Input", 'Nooo ! I was not late to work')
st.text("""""")
st.text("""""")
unleashed = st.button("Unleash the uWu dog")
if unleashed:
try:
input_data = str(inputText)
y = generateUwU.generateUwU(input_data)
show_output(y)
except:
st.write(
"""
### ❗ Oops! Server has run into some error that we are not sure about.
"""
)
st.write(
"""
### Help me resolve this:
- Take a screenshot of this,
- Send me an email [here](mailto:[email protected])
"""
)
st.text("""""")
st.text("""""")
st.text("""""")
st.text("""""")
st.text("""""")
st.write(
"""
#### Made with Love by theroyakash
"""
)
if __name__=="__main__":
main()