xiaofeifei commited on
Commit
22f6e93
1 Parent(s): 8ee1169

update requirements.txt

Browse files
Files changed (3) hide show
  1. README.md +1 -77
  2. README__CN.md +77 -0
  3. app.py +1 -1
README.md CHANGED
@@ -5,84 +5,8 @@ colorFrom: indigo
5
  colorTo: pink
6
  sdk: gradio
7
  sdk_version: 3.37.0
 
8
  app_file: app.py
9
  pinned: false
10
  license: mit
11
  ---
12
- # ChartGPT
13
- ChartGPT allows data lake visualization as a graph through dialogue.
14
- This project borrows some code from the [Viusal ChatGPT]( https://github.com/microsoft/TaskMatrix.git) project
15
-
16
- ## Effect Display
17
- ### 柱状图
18
- ![柱状图](./assets/bar.jpg)
19
-
20
- ### 折线图
21
- ![折线图](./assets/line.jpg)
22
-
23
- ### 饼图
24
- ![饼图](./assets/pie.png)
25
-
26
- ### 散点图
27
- ![饼图](./assets/scatter.png)
28
-
29
- ## 示例输入
30
- ```markdown
31
- 例一:
32
- 将[2,4,5,6,10,20,100]可视化为柱状图
33
-
34
- 例二:
35
- 将[2,4,5,6,10,100,120,200,135,50,10]可视化为折线图
36
-
37
- 例三:
38
- 将下面的数据可视化为饼图
39
- ['A', 'B', 'C', 'D', 'E']
40
- [25, 20, 15, 10, 30]
41
-
42
- 例四
43
- Visualize [2,4,5,6,10,100,120,200,135,50,10] as a line chart
44
-
45
- 例五:
46
- 将下面的数据可视化为散点图
47
- x = [1, 2, 3, 4, 5]
48
- y = [5, 4, 3, 2, 1]
49
-
50
- ```
51
-
52
- ## Quick Start
53
-
54
- ```shell
55
- # clone the repo
56
- git clone https://huggingface.co/spaces/xiaofeifei/ChartGPT
57
-
58
- # Go to directory
59
- cd ChartGPT
60
-
61
- # create a new environment
62
- conda create -n chartgpt python=3.8
63
-
64
- # activate the new environment
65
- conda activate chartgpt
66
-
67
- # prepare the basic environments
68
- pip install -r requirements.txt
69
-
70
- # prepare your private OpenAI key (for Linux)
71
- export OPENAI_API_KEY={Your_Private_Openai_Key}
72
-
73
- # prepare your private OpenAI key (for Windows)
74
- set OPENAI_API_KEY={Your_Private_Openai_Key}
75
-
76
- # start!
77
- python app.py
78
- ```
79
-
80
-
81
- ## Acknowledgement
82
- We appreciate the open source of the following projects:
83
- [TaskMatrix]( https://github.com/microsoft/TaskMatrix.git)  
84
- [LangChain](https://github.com/hwchase17/langchain)  
85
-
86
-
87
-
88
- Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference
 
5
  colorTo: pink
6
  sdk: gradio
7
  sdk_version: 3.37.0
8
+ python_version: 3.8.16
9
  app_file: app.py
10
  pinned: false
11
  license: mit
12
  ---
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
README__CN.md ADDED
@@ -0,0 +1,77 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # ChartGPT
2
+ ChartGPT allows data lake visualization as a graph through dialogue.
3
+ This project borrows some code from the [Viusal ChatGPT]( https://github.com/microsoft/TaskMatrix.git) project
4
+
5
+ ## Effect Display
6
+ ### 柱状图
7
+ ![柱状图](./assets/bar.jpg)
8
+
9
+ ### 折线图
10
+ ![折线图](./assets/line.jpg)
11
+
12
+ ### 饼图
13
+ ![饼图](./assets/pie.png)
14
+
15
+ ### 散点图
16
+ ![饼图](./assets/scatter.png)
17
+
18
+ ## 示例输入
19
+ ```markdown
20
+ 例一:
21
+ 将[2,4,5,6,10,20,100]可视化为柱状图
22
+
23
+ 例二:
24
+ 将[2,4,5,6,10,100,120,200,135,50,10]可视化为折线图
25
+
26
+ 例三:
27
+ 将下面的数据可视化为饼图
28
+ ['A', 'B', 'C', 'D', 'E']
29
+ [25, 20, 15, 10, 30]
30
+
31
+ 例四
32
+ Visualize [2,4,5,6,10,100,120,200,135,50,10] as a line chart
33
+
34
+ 例五:
35
+ 将下面的数据可视化为散点图
36
+ x = [1, 2, 3, 4, 5]
37
+ y = [5, 4, 3, 2, 1]
38
+
39
+ ```
40
+
41
+ ## Quick Start
42
+
43
+ ```shell
44
+ # clone the repo
45
+ git clone https://huggingface.co/spaces/xiaofeifei/ChartGPT
46
+
47
+ # Go to directory
48
+ cd ChartGPT
49
+
50
+ # create a new environment
51
+ conda create -n chartgpt python=3.8
52
+
53
+ # activate the new environment
54
+ conda activate chartgpt
55
+
56
+ # prepare the basic environments
57
+ pip install -r requirements.txt
58
+
59
+ # prepare your private OpenAI key (for Linux)
60
+ export OPENAI_API_KEY={Your_Private_Openai_Key}
61
+
62
+ # prepare your private OpenAI key (for Windows)
63
+ set OPENAI_API_KEY={Your_Private_Openai_Key}
64
+
65
+ # start!
66
+ python app.py
67
+ ```
68
+
69
+
70
+ ## Acknowledgement
71
+ We appreciate the open source of the following projects:
72
+ [TaskMatrix]( https://github.com/microsoft/TaskMatrix.git)  
73
+ [LangChain](https://github.com/hwchase17/langchain)  
74
+
75
+
76
+
77
+ Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference
app.py CHANGED
@@ -76,4 +76,4 @@ if __name__ == '__main__':
76
  clear.click(bot.memory.clear)
77
  clear.click(lambda: [], None, chatbot)
78
  clear.click(lambda: [], None, state)
79
- demo.launch(server_name="0.0.0.0", server_port=7861)
 
76
  clear.click(bot.memory.clear)
77
  clear.click(lambda: [], None, chatbot)
78
  clear.click(lambda: [], None, state)
79
+ demo.launch()