Spaces:
Runtime error
Runtime error
Commit
·
09063a8
1
Parent(s):
6a0a9f7
Update with h2oGPT hash c86dd3b6ef211cef2f99ece2714de09c03e1c490
Browse files- app.py +1 -3
- requirements.txt +2 -2
app.py
CHANGED
|
@@ -556,6 +556,7 @@ def go_gradio(**kwargs):
|
|
| 556 |
else:
|
| 557 |
description = "For more information, visit [the project's website](https://github.com/h2oai/h2ogpt).<br>"
|
| 558 |
if is_public:
|
|
|
|
| 559 |
description += """<p><b> DISCLAIMERS: </b><ul><i><li>The model was trained on The Pile and other data, which may contain objectionable content. Use at own risk.</i></li>"""
|
| 560 |
if kwargs['load_8bit']:
|
| 561 |
description += """<i><li> Model is loaded in 8-bit and has other restrictions on this host. UX can be worse than non-hosted version.</i></li>"""
|
|
@@ -913,9 +914,6 @@ body.dark{background:linear-gradient(#0d0d0d,#333333);}"""
|
|
| 913 |
# Get flagged data
|
| 914 |
zip_data1 = functools.partial(zip_data, root_dirs=['flagged_data_points', kwargs['save_dir']])
|
| 915 |
zip_btn.click(zip_data1, inputs=None, outputs=[file_output, zip_text])
|
| 916 |
-
|
| 917 |
-
#def update_s3(x):
|
| 918 |
-
# return gr.update(value="S3UP [%s]" % x)
|
| 919 |
s3up_btn.click(s3up, inputs=zip_text, outputs=s3up_text)
|
| 920 |
|
| 921 |
def check_admin_pass(x):
|
|
|
|
| 556 |
else:
|
| 557 |
description = "For more information, visit [the project's website](https://github.com/h2oai/h2ogpt).<br>"
|
| 558 |
if is_public:
|
| 559 |
+
description += "If this host is busy, try [20B](gpt.h2o.ai) and [Chatbot1 12B](https://huggingface.co/spaces/h2oai/h2ogpt-chatbot) and [Chatbot2 12B](https://huggingface.co/spaces/h2oai/h2ogpt-chatbot2)<br>"
|
| 560 |
description += """<p><b> DISCLAIMERS: </b><ul><i><li>The model was trained on The Pile and other data, which may contain objectionable content. Use at own risk.</i></li>"""
|
| 561 |
if kwargs['load_8bit']:
|
| 562 |
description += """<i><li> Model is loaded in 8-bit and has other restrictions on this host. UX can be worse than non-hosted version.</i></li>"""
|
|
|
|
| 914 |
# Get flagged data
|
| 915 |
zip_data1 = functools.partial(zip_data, root_dirs=['flagged_data_points', kwargs['save_dir']])
|
| 916 |
zip_btn.click(zip_data1, inputs=None, outputs=[file_output, zip_text])
|
|
|
|
|
|
|
|
|
|
| 917 |
s3up_btn.click(s3up, inputs=zip_text, outputs=s3up_text)
|
| 918 |
|
| 919 |
def check_admin_pass(x):
|
requirements.txt
CHANGED
|
@@ -1,5 +1,5 @@
|
|
| 1 |
# for generate (gradio server) and finetune
|
| 2 |
-
datasets==2.
|
| 3 |
sentencepiece==0.1.97
|
| 4 |
accelerate==0.18.0
|
| 5 |
gradio==3.27.0
|
|
@@ -15,7 +15,7 @@ scikit-learn==1.2.2
|
|
| 15 |
alt-profanity-check==1.2.2
|
| 16 |
better-profanity==0.6.1
|
| 17 |
numpy==1.24.2
|
| 18 |
-
pandas==
|
| 19 |
matplotlib==3.7.1
|
| 20 |
loralib==0.1.1
|
| 21 |
bitsandbytes==0.38.1
|
|
|
|
| 1 |
# for generate (gradio server) and finetune
|
| 2 |
+
datasets==2.11.0
|
| 3 |
sentencepiece==0.1.97
|
| 4 |
accelerate==0.18.0
|
| 5 |
gradio==3.27.0
|
|
|
|
| 15 |
alt-profanity-check==1.2.2
|
| 16 |
better-profanity==0.6.1
|
| 17 |
numpy==1.24.2
|
| 18 |
+
pandas==2.0.0
|
| 19 |
matplotlib==3.7.1
|
| 20 |
loralib==0.1.1
|
| 21 |
bitsandbytes==0.38.1
|