Spaces:
Runtime error
Runtime error
zwq2018
commited on
Commit
·
c6944b5
1
Parent(s):
b4d686c
updata
Browse files- README.md +1 -1
- app.py +7 -2
- app_with_key.py +8 -3
README.md
CHANGED
|
@@ -5,7 +5,7 @@ colorFrom: green
|
|
| 5 |
colorTo: red
|
| 6 |
sdk: gradio
|
| 7 |
sdk_version: 3.34.0
|
| 8 |
-
app_file:
|
| 9 |
pinned: false
|
| 10 |
license: mit
|
| 11 |
python_version: 3.9.13
|
|
|
|
| 5 |
colorTo: red
|
| 6 |
sdk: gradio
|
| 7 |
sdk_version: 3.34.0
|
| 8 |
+
app_file: app.py
|
| 9 |
pinned: false
|
| 10 |
license: mit
|
| 11 |
python_version: 3.9.13
|
app.py
CHANGED
|
@@ -84,13 +84,18 @@ with gr.Blocks() as demo:
|
|
| 84 |
A powerful AI system connects humans and data.
|
| 85 |
|
| 86 |
## The current version only supports **Chinese financial data**, in the future we will support for other country data
|
| 87 |
-
|
| 88 |
""")
|
| 89 |
|
| 90 |
|
| 91 |
with gr.Row():
|
| 92 |
with gr.Column(scale=0.9):
|
| 93 |
-
input_text = gr.inputs.Textbox(lines=1, placeholder='Please input your problem...', label='what do you want to find? Then press Start
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 94 |
|
| 95 |
with gr.Column(scale=0.1, min_width=0):
|
| 96 |
start_btn = gr.Button("Start").style(full_height=True)
|
|
|
|
| 84 |
A powerful AI system connects humans and data.
|
| 85 |
|
| 86 |
## The current version only supports **Chinese financial data**, in the future we will support for other country data
|
| 87 |
+
### 由于数据源和模型输入的限制,当前接入的数据源和设计功能较有限,欢迎合作
|
| 88 |
""")
|
| 89 |
|
| 90 |
|
| 91 |
with gr.Row():
|
| 92 |
with gr.Column(scale=0.9):
|
| 93 |
+
input_text = gr.inputs.Textbox(lines=1, placeholder='Please input your problem...', label='what do you want to find? Then press Start ')
|
| 94 |
+
gr.Markdown(
|
| 95 |
+
"""
|
| 96 |
+
### Step1-输入你的问题然后点击Start
|
| 97 |
+
""")
|
| 98 |
+
|
| 99 |
|
| 100 |
with gr.Column(scale=0.1, min_width=0):
|
| 101 |
start_btn = gr.Button("Start").style(full_height=True)
|
app_with_key.py
CHANGED
|
@@ -85,7 +85,7 @@ with gr.Blocks() as demo:
|
|
| 85 |
A powerful AI system connects humans and data.
|
| 86 |
|
| 87 |
## The current version only supports **Chinese financial data**, in the future we will support for other country data
|
| 88 |
-
|
| 89 |
""")
|
| 90 |
|
| 91 |
|
|
@@ -95,7 +95,7 @@ with gr.Blocks() as demo:
|
|
| 95 |
gr.Markdown(
|
| 96 |
"""
|
| 97 |
You can use gpt35 from openai or from openai-azure ,then press OK
|
| 98 |
-
###
|
| 99 |
""")
|
| 100 |
openai_api_key = gr.Textbox(
|
| 101 |
show_label=False,
|
|
@@ -136,7 +136,12 @@ with gr.Blocks() as demo:
|
|
| 136 |
|
| 137 |
with gr.Row():
|
| 138 |
with gr.Column(scale=0.9):
|
| 139 |
-
input_text = gr.inputs.Textbox(lines=1, placeholder='Please input your problem...', label='what do you want to find? Then press Start
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 140 |
|
| 141 |
with gr.Column(scale=0.1, min_width=0):
|
| 142 |
start_btn = gr.Button("Start").style(full_height=True)
|
|
|
|
| 85 |
A powerful AI system connects humans and data.
|
| 86 |
|
| 87 |
## The current version only supports **Chinese financial data**, in the future we will support for other country data
|
| 88 |
+
### 由于数据源和模型输入的限制,当前接入的数据源和设计功能较有限,欢迎合作
|
| 89 |
""")
|
| 90 |
|
| 91 |
|
|
|
|
| 95 |
gr.Markdown(
|
| 96 |
"""
|
| 97 |
You can use gpt35 from openai or from openai-azure ,then press OK
|
| 98 |
+
### Step1-请输入自己的OPENAI的Key并等待几秒后按OK.
|
| 99 |
""")
|
| 100 |
openai_api_key = gr.Textbox(
|
| 101 |
show_label=False,
|
|
|
|
| 136 |
|
| 137 |
with gr.Row():
|
| 138 |
with gr.Column(scale=0.9):
|
| 139 |
+
input_text = gr.inputs.Textbox(lines=1, placeholder='Please input your problem...', label='what do you want to find? Then press Start')
|
| 140 |
+
gr.Markdown(
|
| 141 |
+
"""
|
| 142 |
+
### Step2-输入你的问题然后点击Start
|
| 143 |
+
""")
|
| 144 |
+
|
| 145 |
|
| 146 |
with gr.Column(scale=0.1, min_width=0):
|
| 147 |
start_btn = gr.Button("Start").style(full_height=True)
|