sc_ma commited on
Commit
ec969c9
1 Parent(s): 01c8ec0

Add cache.

Browse files
Files changed (2) hide show
  1. README-en.md +43 -0
  2. app.py +3 -2
README-en.md ADDED
@@ -0,0 +1,43 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # Auto-Draft: Literatures Summarization Assistant
2
+
3
+ This project aims to automatically summarize a field of research.
4
+
5
+ ***Features***:
6
+ * Automatically search related papers.
7
+ * Every claim has an appropriate citation.
8
+ * Output LaTeX template.
9
+
10
+ This script requires GPT-4 access. One round of generation will take around 10 minutes and 15,000 tokens (0.5 to 0.8 US dollars).
11
+
12
+ # Demo
13
+
14
+ The following link provides a free demo of basic functions.
15
+ If you need more customized features, please refer to *Usage* for local deployment and modification.
16
+
17
+ https://huggingface.co/spaces/auto-academic/auto-draft
18
+
19
+ # Usage
20
+ 1. Clone this repo:
21
+ ```angular2html
22
+ git clone https://github.com/CCCBora/auto-draft
23
+ ```
24
+ 2. Install dependencies:
25
+ ```angular2html
26
+ pip install -r requirements.txt
27
+ ```
28
+ 3. Set the `OPENAI_API_KEY` in the environment variables.
29
+ 4. Edit `auto_backgrounds.py` to customize the topic you want to explore, and then run
30
+ ```angular2html
31
+ python auto_backgrounds.py
32
+ ```
33
+
34
+ # Example Outputs
35
+ The `outputs` folder contains some original outputs for given inputs.
36
+ They can be directly compiled using Overleaf.
37
+
38
+ Page 1 | Page 2
39
+ :-------------------------:|:-------------------------:
40
+ ![](assets/page1.png "Page-1") | ![](assets/page2.png "Page-2")
41
+
42
+
43
+
app.py CHANGED
@@ -16,12 +16,13 @@ def wrapped_generate_backgrounds(title, description):
16
 
17
  with gr.Blocks() as demo:
18
  gr.Markdown('''
19
- # Auto-Draft: 文献整理辅助工具
20
 
21
  本Demo提供对[Auto-Draft](https://github.com/CCCBora/auto-draft)的auto_backgrounds功能的测试。通过输入一个领域的名称(比如Deep Reinforcement Learning),
22
  即可自动对这个领域的相关文献进行归纳总结.
23
 
24
- 生成一篇论文需要15000 Tokens(大约0.5到0.8美元). 请用户酌情体验.
 
25
 
26
  ## 用法
27
 
 
16
 
17
  with gr.Blocks() as demo:
18
  gr.Markdown('''
19
+ # Auto-Draft: 文献整理辅助工具-限量免费使用
20
 
21
  本Demo提供对[Auto-Draft](https://github.com/CCCBora/auto-draft)的auto_backgrounds功能的测试。通过输入一个领域的名称(比如Deep Reinforcement Learning),
22
  即可自动对这个领域的相关文献进行归纳总结.
23
 
24
+ 生成一篇论文,需要使用我GPT4的API,大概每篇15000 Tokens(大约0.5到0.8美元).
25
+ 我为大家提供了30刀的额度上限,希望大家有明确需求再使用. 如果有更多需求,建议本地部署, 使用自己的API KEY!
26
 
27
  ## 用法
28