Spaces:
Runtime error
Runtime error
sc_ma
commited on
Commit
·
b4720c2
1
Parent(s):
4e7254f
Update UI.
Browse files
app.py
CHANGED
|
@@ -2,10 +2,8 @@ import gradio as gr
|
|
| 2 |
import openai
|
| 3 |
from auto_backgrounds import generate_backgrounds
|
| 4 |
|
| 5 |
-
# todo:
|
| 6 |
-
#
|
| 7 |
-
# 4. further polish auto_backgrounds.py. Make backgrounds have multiple subsection.
|
| 8 |
-
# 5. Design a good layout of huggingface space.
|
| 9 |
|
| 10 |
def clear_inputs(text1, text2):
|
| 11 |
return ("", "")
|
|
@@ -14,7 +12,12 @@ with gr.Blocks() as demo:
|
|
| 14 |
gr.Markdown('''
|
| 15 |
# Auto-Draft: 论文结构辅助工具
|
| 16 |
|
| 17 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 18 |
''')
|
| 19 |
with gr.Row():
|
| 20 |
with gr.Column():
|
|
|
|
| 2 |
import openai
|
| 3 |
from auto_backgrounds import generate_backgrounds
|
| 4 |
|
| 5 |
+
# todo: 3. create a huggingface space. test it using multiple devices!
|
| 6 |
+
# 5. Add more functions in this demo.
|
|
|
|
|
|
|
| 7 |
|
| 8 |
def clear_inputs(text1, text2):
|
| 9 |
return ("", "")
|
|
|
|
| 12 |
gr.Markdown('''
|
| 13 |
# Auto-Draft: 论文结构辅助工具
|
| 14 |
|
| 15 |
+
本Demo提供对Auto-Draft的auto_backgrounds功能的测试。通过输入一个领域的名称(比如Deep Reinforcement Learning),
|
| 16 |
+
即可自动生成对这个领域的Introduction,Related Works,和Backgrounds.
|
| 17 |
+
|
| 18 |
+
## 用法
|
| 19 |
+
|
| 20 |
+
输入一个领域的名称(比如Deep Reinforcement Learning), 点击Submit, 等待大概十分钟, 下载output.zip,在Overleaf上编译浏览.
|
| 21 |
''')
|
| 22 |
with gr.Row():
|
| 23 |
with gr.Column():
|