Spaces:
Sleeping
Sleeping
rajesh1501
commited on
Commit
•
1f06873
1
Parent(s):
84e508e
Upload folder using huggingface_hub
Browse files- README.md +3 -9
- app.py +21 -0
- db/82b82a1f-8bfd-4c4e-93e7-c5b2b8e089b0/data_level0.bin +3 -0
- db/82b82a1f-8bfd-4c4e-93e7-c5b2b8e089b0/header.bin +3 -0
- db/82b82a1f-8bfd-4c4e-93e7-c5b2b8e089b0/length.bin +3 -0
- db/82b82a1f-8bfd-4c4e-93e7-c5b2b8e089b0/link_lists.bin +0 -0
- db/chroma.sqlite3 +0 -0
- embedchain.json +3 -0
- requirements.txt +2 -0
README.md
CHANGED
@@ -1,12 +1,6 @@
|
|
1 |
---
|
2 |
-
title:
|
3 |
-
emoji: 👁
|
4 |
-
colorFrom: pink
|
5 |
-
colorTo: green
|
6 |
-
sdk: gradio
|
7 |
-
sdk_version: 4.19.2
|
8 |
app_file: app.py
|
9 |
-
|
|
|
10 |
---
|
11 |
-
|
12 |
-
Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference
|
|
|
1 |
---
|
2 |
+
title: my-rag-app
|
|
|
|
|
|
|
|
|
|
|
3 |
app_file: app.py
|
4 |
+
sdk: gradio
|
5 |
+
sdk_version: 4.11.0
|
6 |
---
|
|
|
|
app.py
ADDED
@@ -0,0 +1,21 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
import os
|
2 |
+
|
3 |
+
import gradio as gr
|
4 |
+
|
5 |
+
from embedchain import App
|
6 |
+
|
7 |
+
os.environ["OPENAI_API_KEY"] = "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"
|
8 |
+
|
9 |
+
app = App()
|
10 |
+
app.add("https://devgan.in/all_sections_ipc.php")
|
11 |
+
app.add("http://ncw.nic.in/important-links/List-of-Laws-Related-to-Women")
|
12 |
+
app.add("https://amritmahotsav.nic.in/blogdetail.htm?84")
|
13 |
+
app.add("https://www.animallaw.info/article/introduction-criminal-law-india#:~:text=The%20laws%20that%20govern%20criminal,a%20crime%20has%20been%20committed")
|
14 |
+
|
15 |
+
def query(message, history):
|
16 |
+
return app.chat(message)
|
17 |
+
|
18 |
+
|
19 |
+
demo = gr.ChatInterface(query)
|
20 |
+
|
21 |
+
demo.launch(share=True)
|
db/82b82a1f-8bfd-4c4e-93e7-c5b2b8e089b0/data_level0.bin
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:f18abd8c514282db82706e52b0a33ed659cd534e925a6f149deb7af9ce34bd8e
|
3 |
+
size 6284000
|
db/82b82a1f-8bfd-4c4e-93e7-c5b2b8e089b0/header.bin
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:effaa959ce2b30070fdafc2fe82096fc46e4ee7561b75920dd3ce43d09679b21
|
3 |
+
size 100
|
db/82b82a1f-8bfd-4c4e-93e7-c5b2b8e089b0/length.bin
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:cf60fe2c5d0050efde4321661d6edb15bcb44aaa4e0f199ee784f8af62d51712
|
3 |
+
size 4000
|
db/82b82a1f-8bfd-4c4e-93e7-c5b2b8e089b0/link_lists.bin
ADDED
File without changes
|
db/chroma.sqlite3
ADDED
Binary file (348 kB). View file
|
|
embedchain.json
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"provider": "gradio.app"
|
3 |
+
}
|
requirements.txt
ADDED
@@ -0,0 +1,2 @@
|
|
|
|
|
|
|
1 |
+
gradio==4.11.0
|
2 |
+
embedchain
|