Phani1008 commited on
Commit
d4427ac
·
verified ·
1 Parent(s): 5dfbf8e

Rename pages/Natural_Language_Processing.js to pages/Natural_Language_Processing.py

Browse files
pages/Natural_Language_Processing.js DELETED
@@ -1,47 +0,0 @@
1
- import React from "react";
2
- import { Button } from "@/components/ui/button";
3
- import { Card, CardContent } from "@/components/ui/card";
4
- import { motion } from "framer-motion";
5
-
6
- const NLPPage = () => {
7
- const handleRedirect = () => {
8
- window.open("https://huggingface.co/spaces/your-target-space", "_blank");
9
- };
10
-
11
- return (
12
- <div className="min-h-screen bg-gray-50 flex flex-col justify-center items-center p-6">
13
- <motion.div
14
- initial={{ opacity: 0, y: -50 }}
15
- animate={{ opacity: 1, y: 0 }}
16
- transition={{ duration: 0.8 }}
17
- className="max-w-2xl w-full"
18
- >
19
- <Card className="shadow-lg">
20
- <CardContent className="p-6">
21
- <h1 className="text-3xl font-bold text-center mb-4">
22
- Natural Language Processing (NLP)
23
- </h1>
24
- <p className="text-gray-600 text-lg text-justify mb-6">
25
- Natural Language Processing (NLP) is a branch of artificial intelligence
26
- that focuses on the interaction between computers and humans through
27
- natural language. It enables machines to read, understand, and respond
28
- to human language in a way that is both meaningful and useful. From chatbots
29
- to translation tools, NLP powers various applications that make communication
30
- with technology more intuitive.
31
- </p>
32
- <div className="flex justify-center">
33
- <Button
34
- onClick={handleRedirect}
35
- className="bg-blue-600 text-white px-6 py-2 rounded-lg hover:bg-blue-700 shadow-md"
36
- >
37
- Explore More
38
- </Button>
39
- </div>
40
- </CardContent>
41
- </Card>
42
- </motion.div>
43
- </div>
44
- );
45
- };
46
-
47
- export default NLPPage;
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
pages/Natural_Language_Processing.py ADDED
@@ -0,0 +1,22 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ import streamlit as st
2
+
3
+ def main():
4
+ st.title("Natural Language Processing (NLP)")
5
+
6
+ st.markdown(
7
+ """
8
+ ### What is NLP?
9
+ Natural Language Processing (NLP) is a branch of artificial intelligence that focuses on the interaction between
10
+ computers and humans through natural language. It enables machines to read, understand, and respond to human
11
+ language in a way that is both meaningful and useful. From chatbots to translation tools, NLP powers various
12
+ applications that make communication with technology more intuitive.
13
+ """
14
+ )
15
+
16
+ if st.button("Explore More"):
17
+ st.experimental_set_query_params(redirect=True)
18
+ js = "window.open('https://huggingface.co/spaces/your-target-space', '_blank')"
19
+ st.markdown(f'<script>{js}</script>', unsafe_allow_html=True)
20
+
21
+ if __name__ == "__main__":
22
+ main()