simondby
commited on
Commit
·
0f1e188
1
Parent(s):
d3d045c
update README python version
Browse files
README.md
CHANGED
|
@@ -8,6 +8,7 @@ sdk_version: 3.20.1
|
|
| 8 |
app_file: app.py
|
| 9 |
pinned: false
|
| 10 |
license: apache-2.0
|
|
|
|
| 11 |
---
|
| 12 |
|
| 13 |
Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference
|
|
|
|
| 8 |
app_file: app.py
|
| 9 |
pinned: false
|
| 10 |
license: apache-2.0
|
| 11 |
+
python_version: 3.10.10
|
| 12 |
---
|
| 13 |
|
| 14 |
Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference
|
app.py
CHANGED
|
@@ -434,7 +434,7 @@ with gr.Blocks(css=css_styles,title="Chatbot🚀"
|
|
| 434 |
# api key
|
| 435 |
with gr.Accordion(label="API Key(帮助节省额度)", open=False):
|
| 436 |
apiKey = gr.Textbox(show_label=True, placeholder=f"使用自己的OpenAI API key",
|
| 437 |
-
value='', label="默认的API额度可能很快用完,你可以使用自己的API Key,以帮忙节省额度。", type="text", visible=True).style(container=True)
|
| 438 |
|
| 439 |
# sys prompt
|
| 440 |
promptSystem = gr.Textbox(lines=2,show_label=True, placeholder=f"在这里输入System Prompt...",
|
|
|
|
| 434 |
# api key
|
| 435 |
with gr.Accordion(label="API Key(帮助节省额度)", open=False):
|
| 436 |
apiKey = gr.Textbox(show_label=True, placeholder=f"使用自己的OpenAI API key",
|
| 437 |
+
value='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', label="默认的API额度可能很快用完,你可以使用自己的API Key,以帮忙节省额度。", type="text", visible=True).style(container=True)
|
| 438 |
|
| 439 |
# sys prompt
|
| 440 |
promptSystem = gr.Textbox(lines=2,show_label=True, placeholder=f"在这里输入System Prompt...",
|