simpx commited on
Commit
da68db8
1 Parent(s): 7127080

update README.md

Browse files
Files changed (1) hide show
  1. README.md +35 -0
README.md CHANGED
@@ -11,3 +11,38 @@ license: mit
11
  ---
12
 
13
  Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
11
  ---
12
 
13
  Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference
14
+ # ChatDemo
15
+
16
+ This is a basic ChatGPT demo based on ChatAPI and gradio framework
17
+
18
+ ## Installation and Usage
19
+
20
+ ```bash
21
+ git clone https://github.com/simpx/chatdemo.git
22
+ cd chatdemo
23
+ pip install -r requirements.txt
24
+ ```
25
+
26
+ #### Start Directly
27
+ Access through `http://127.0.0.1:7860`
28
+ ```bash
29
+ python app.py
30
+ ```
31
+
32
+ #### Start with gradio
33
+
34
+ Automatically reload after modify the code, Default listening on 0.0.0.0 allows hosting in the cloud
35
+ ```bash
36
+ sh run.sh
37
+ ```
38
+
39
+ #### Chat
40
+
41
+ 1. Configure on the `Config` tab, or create the 'config' file in the same directory as app.py.
42
+ 2. Chat on the `Chat` tab
43
+
44
+ #### Hosting with HuggingFace Spaces
45
+
46
+ 1. Create a new Space at https://huggingface.co/new-space and choose `Gradio` as the Space SDK.
47
+ 2. Push this project to the newly created Space.
48
+ 3. Wait for the build to complete, then access the Space page.