Spaces:
Sleeping
Sleeping
Commit
·
2cb03e6
1
Parent(s):
14e6850
Upload app.py
Browse files
app.py
CHANGED
@@ -44,7 +44,7 @@ def get_text_completion(raw_text):
|
|
44 |
|
45 |
# Streamlit app
|
46 |
def main():
|
47 |
-
st.title("
|
48 |
|
49 |
# Get user input
|
50 |
raw_text = st.text_area("Enter text:", "i need to know about narcotics pemishment")
|
@@ -53,6 +53,32 @@ def main():
|
|
53 |
if st.button("Complete Text"):
|
54 |
completion_result = get_text_completion(raw_text)
|
55 |
st.success("Completion:\n{}".format(completion_result))
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
56 |
|
57 |
if __name__ == "__main__":
|
58 |
main()
|
|
|
44 |
|
45 |
# Streamlit app
|
46 |
def main():
|
47 |
+
st.title("Pyresearch gpt App")
|
48 |
|
49 |
# Get user input
|
50 |
raw_text = st.text_area("Enter text:", "i need to know about narcotics pemishment")
|
|
|
53 |
if st.button("Complete Text"):
|
54 |
completion_result = get_text_completion(raw_text)
|
55 |
st.success("Completion:\n{}".format(completion_result))
|
56 |
+
|
57 |
+
# Display HTML content
|
58 |
+
html_content = '''
|
59 |
+
|
60 |
+
<div align="center">
|
61 |
+
<a href="https://github.com/pyresearch/pyresearch" style="text-decoration:none;">
|
62 |
+
<img src="https://user-images.githubusercontent.com/34125851/226594737-c21e2dda-9cc6-42ef-b4e7-a685fea4a21d.png" width="2%" alt="" /></a>
|
63 |
+
<img src="https://user-images.githubusercontent.com/34125851/226595799-160b0da3-c9e0-4562-8544-5f20460f7cc9.png" width="2%" alt="" />
|
64 |
+
<a href="https://www.linkedin.com/company/pyresearch/" style="text-decoration:none;">
|
65 |
+
<img src="https://user-images.githubusercontent.com/34125851/226596446-746ffdd0-a47e-4452-84e3-bf11ec2aa26a.png" width="2%" alt="" /></a>
|
66 |
+
<img src="https://user-images.githubusercontent.com/34125851/226595799-160b0da3-c9e0-4562-8544-5f20460f7cc9.png" width="2%" alt="" />
|
67 |
+
<a href="https://twitter.com/Noorkhokhar10" style="text-decoration:none;">
|
68 |
+
<img src="https://user-images.githubusercontent.com/34125851/226599162-9b11194e-4998-440a-ba94-c8a5e1cdc676.png" width="2%" alt="" /></a>
|
69 |
+
<img src="https://user-images.githubusercontent.com/34125851/226595799-160b0da3-c9e0-4562-8544-5f20460f7cc9.png" width="2%" alt="" />
|
70 |
+
<a href="https://www.youtube.com/@Pyresearch" style="text-decoration:none;">
|
71 |
+
<img src="https://user-images.githubusercontent.com/34125851/226599904-7d5cc5c0-89d2-4d1e-891e-19bee1951744.png" width="2%" alt="" /></a>
|
72 |
+
<img src="https://user-images.githubusercontent.com/34125851/226595799-160b0da3-c9e0-4562-8544-5f20460f7cc9.png" width="2%" alt="" />
|
73 |
+
<a href="https://www.facebook.com/Pyresearch" style="text-decoration:none;">
|
74 |
+
<img src="https://user-images.githubusercontent.com/34125851/226600380-a87a9142-e8e0-4ec9-bf2c-dd6e9da2f05a.png" width="2%" alt="" /></a>
|
75 |
+
<img src="https://user-images.githubusercontent.com/34125851/226595799-160b0da3-c9e0-4562-8544-5f20460f7cc9.png" width="2%" alt="" />
|
76 |
+
<a href="https://www.instagram.com/pyresearch/" style="text-decoration:none;">
|
77 |
+
<img src="https://user-images.githubusercontent.com/34125851/226601355-ffe0b597-9840-4e10-bbef-43d6c74b5a9e.png" width="2%" alt="" /></a>
|
78 |
+
</div>
|
79 |
+
|
80 |
+
'''
|
81 |
+
st.markdown(html_content, unsafe_allow_html=True)
|
82 |
|
83 |
if __name__ == "__main__":
|
84 |
main()
|