mslimanizatsit
commited on
Commit
·
e117c8b
1
Parent(s):
15a1578
feat: init project
Browse files- .idea/.gitignore +8 -0
- .idea/misc.xml +6 -0
- .idea/modules.xml +8 -0
- .idea/vcs.xml +6 -0
- .idea/zatsbot.iml +9 -0
- app.py +18 -0
.idea/.gitignore
ADDED
@@ -0,0 +1,8 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
# Default ignored files
|
2 |
+
/shelf/
|
3 |
+
/workspace.xml
|
4 |
+
# Editor-based HTTP Client requests
|
5 |
+
/httpRequests/
|
6 |
+
# Datasource local storage ignored files
|
7 |
+
/dataSources/
|
8 |
+
/dataSources.local.xml
|
.idea/misc.xml
ADDED
@@ -0,0 +1,6 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?xml version="1.0" encoding="UTF-8"?>
|
2 |
+
<project version="4">
|
3 |
+
<component name="ProjectRootManager">
|
4 |
+
<output url="file://$PROJECT_DIR$/out" />
|
5 |
+
</component>
|
6 |
+
</project>
|
.idea/modules.xml
ADDED
@@ -0,0 +1,8 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?xml version="1.0" encoding="UTF-8"?>
|
2 |
+
<project version="4">
|
3 |
+
<component name="ProjectModuleManager">
|
4 |
+
<modules>
|
5 |
+
<module fileurl="file://$PROJECT_DIR$/.idea/zatsbot.iml" filepath="$PROJECT_DIR$/.idea/zatsbot.iml" />
|
6 |
+
</modules>
|
7 |
+
</component>
|
8 |
+
</project>
|
.idea/vcs.xml
ADDED
@@ -0,0 +1,6 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?xml version="1.0" encoding="UTF-8"?>
|
2 |
+
<project version="4">
|
3 |
+
<component name="VcsDirectoryMappings">
|
4 |
+
<mapping directory="" vcs="Git" />
|
5 |
+
</component>
|
6 |
+
</project>
|
.idea/zatsbot.iml
ADDED
@@ -0,0 +1,9 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?xml version="1.0" encoding="UTF-8"?>
|
2 |
+
<module type="JAVA_MODULE" version="4">
|
3 |
+
<component name="NewModuleRootManager" inherit-compiler-output="true">
|
4 |
+
<exclude-output />
|
5 |
+
<content url="file://$MODULE_DIR$" />
|
6 |
+
<orderEntry type="inheritedJdk" />
|
7 |
+
<orderEntry type="sourceFolder" forTests="false" />
|
8 |
+
</component>
|
9 |
+
</module>
|
app.py
CHANGED
@@ -1,7 +1,25 @@
|
|
1 |
import gradio as gr
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2 |
|
3 |
def greet(name):
|
4 |
return "Hello " + name + "!!"
|
5 |
|
|
|
6 |
demo = gr.Interface(fn=greet, inputs="text", outputs="text")
|
7 |
demo.launch()
|
|
|
1 |
import gradio as gr
|
2 |
+
from llama_index.readers.web.unstructured_web.base import UnstructuredURLLoader
|
3 |
+
|
4 |
+
def import_documents():
|
5 |
+
urls = [
|
6 |
+
"https://www.zatsit.fr/",
|
7 |
+
"https://www.zatsit.fr/collaborer-avec-zatsit/",
|
8 |
+
"https://fr.linkedin.com/company/zatsit",
|
9 |
+
"https://www.zatsit.fr/contact/",
|
10 |
+
"https://blog.zatsit.fr/blog/green-exploitation-miniere",
|
11 |
+
"https://blog.zatsit.fr/blog/bundlephobia-reduire-javascript",
|
12 |
+
"https://blog.zatsit.fr/blog/gemini-vertex-ai",
|
13 |
+
"https://blog.zatsit.fr/blog/asyncapi-3-is-out",
|
14 |
+
"https://blog.zatsit.fr/blog/redpanda-introduction",
|
15 |
+
]
|
16 |
+
loader = UnstructuredURLLoader(urls=urls)
|
17 |
+
documents = loader.load_data()
|
18 |
+
return documents
|
19 |
|
20 |
def greet(name):
|
21 |
return "Hello " + name + "!!"
|
22 |
|
23 |
+
import_documents()
|
24 |
demo = gr.Interface(fn=greet, inputs="text", outputs="text")
|
25 |
demo.launch()
|