beratcmn commited on
Commit
65581f0
·
1 Parent(s): e6fe6fa
Files changed (4) hide show
  1. .gitmodules +3 -0
  2. app.py +11 -0
  3. chatgpt_conversation_parser +1 -0
  4. requirements.txt +68 -0
.gitmodules ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ [submodule "chatgpt_conversation_parser"]
2
+ path = chatgpt_conversation_parser
3
+ url = https://github.com/beratcmn/chatgpt-conversation-parser.git
app.py ADDED
@@ -0,0 +1,11 @@
 
 
 
 
 
 
 
 
 
 
 
 
1
+ import gradio as gr
2
+ from chatgpt_conversation_parser.main import fetch_and_parse_conversation
3
+
4
+ demo = gr.Interface(
5
+ fn=fetch_and_parse_conversation,
6
+ inputs=["text"],
7
+ outputs=["text", gr.DownloadButton(label="Download JSONL")],
8
+ )
9
+
10
+
11
+ demo.launch()
chatgpt_conversation_parser ADDED
@@ -0,0 +1 @@
 
 
1
+ Subproject commit aac86ae2b205d047db3fae26b38b1679b94fca93
requirements.txt ADDED
@@ -0,0 +1,68 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ aiofiles==23.2.1
2
+ altair==5.2.0
3
+ annotated-types==0.6.0
4
+ anyio==4.3.0
5
+ attrs==23.2.0
6
+ beautifulsoup4==4.12.3
7
+ certifi==2024.2.2
8
+ charset-normalizer==3.3.2
9
+ click==8.1.7
10
+ colorama==0.4.6
11
+ contourpy==1.2.0
12
+ cycler==0.12.1
13
+ exceptiongroup==1.2.0
14
+ fastapi==0.110.0
15
+ ffmpy==0.3.2
16
+ filelock==3.13.1
17
+ fonttools==4.50.0
18
+ fsspec==2024.3.0
19
+ gradio==4.21.0
20
+ gradio-client==0.12.0
21
+ h11==0.14.0
22
+ httpcore==1.0.4
23
+ httpx==0.27.0
24
+ huggingface-hub==0.21.4
25
+ idna==3.6
26
+ importlib-resources==6.3.1
27
+ jinja2==3.1.3
28
+ jsonschema==4.21.1
29
+ jsonschema-specifications==2023.12.1
30
+ kiwisolver==1.4.5
31
+ markdown-it-py==3.0.0
32
+ markupsafe==2.1.5
33
+ matplotlib==3.8.3
34
+ mdurl==0.1.2
35
+ numpy==1.26.4
36
+ orjson==3.9.15
37
+ packaging==24.0
38
+ pandas==2.2.1
39
+ pillow==10.2.0
40
+ pydantic==2.6.4
41
+ pydantic-core==2.16.3
42
+ pydub==0.25.1
43
+ pygments==2.17.2
44
+ pyparsing==3.1.2
45
+ python-dateutil==2.9.0.post0
46
+ python-multipart==0.0.9
47
+ pytz==2024.1
48
+ pyyaml==6.0.1
49
+ referencing==0.34.0
50
+ requests==2.31.0
51
+ rich==13.7.1
52
+ rpds-py==0.18.0
53
+ ruff==0.3.3
54
+ semantic-version==2.10.0
55
+ shellingham==1.5.4
56
+ six==1.16.0
57
+ sniffio==1.3.1
58
+ soupsieve==2.5
59
+ starlette==0.36.3
60
+ tomlkit==0.12.0
61
+ toolz==0.12.1
62
+ tqdm==4.66.2
63
+ typer==0.9.0
64
+ typing-extensions==4.10.0
65
+ tzdata==2024.1
66
+ urllib3==2.2.1
67
+ uvicorn==0.28.0
68
+ websockets==11.0.3