Spaces:
Sleeping
Sleeping
Terry Zhuo
commited on
Commit
•
c6b78e0
1
Parent(s):
e30251a
update url
Browse files
app.py
CHANGED
@@ -13,21 +13,21 @@ from share_btn import community_icon_html, loading_icon_html, share_js, share_bt
|
|
13 |
HF_TOKEN = os.environ.get("HF_TOKEN", None)
|
14 |
CHECKPOINT_URL = "Salesforce/codegen-350M-mono"
|
15 |
|
16 |
-
SQLMODEL_PREFIX_URL = "
|
17 |
-
SFEPY_PREFIX_URL = "
|
18 |
-
MEGENGINE_PREFIX_URL = "
|
19 |
-
MAIN_EVO_PREFIX_URL = "
|
20 |
-
|
21 |
-
SQLMODEL_FFT_URL = "
|
22 |
-
SFEPY_FFT_URL = "
|
23 |
-
MEGENGINE_FFT_URL = "
|
24 |
-
MAIN_EVO_FFT_URL = "
|
25 |
-
MAIN_FD_FFT_URL = "
|
26 |
-
|
27 |
-
LANGCHAIN_PREFIX_URL = "
|
28 |
-
LLAMAINDEX_PREFIX_URL = "
|
29 |
-
DSPY_PREFIX_URL = "
|
30 |
-
CS_EVO_PREFIX_URL = "
|
31 |
|
32 |
tokenizer = AutoTokenizer.from_pretrained(CHECKPOINT_URL)
|
33 |
basemodel = AutoModelForCausalLM.from_pretrained(CHECKPOINT_URL, device_map="auto")
|
@@ -214,7 +214,7 @@ description = """
|
|
214 |
<h1> 🌙 LUNA Models Playground</h1>
|
215 |
</div>
|
216 |
<div style="text-align: left;">
|
217 |
-
<p>This is a demo to generate text and code with unknown libraries. The supported based model is <a href="
|
218 |
<p>The supported libraries are:</p>
|
219 |
<ul>
|
220 |
<li><a href="https://sqlmodel.tiangolo.com" style='color: #e6b800;'>SQLModel</a></li>
|
@@ -227,8 +227,8 @@ description = """
|
|
227 |
<p><b>Please note:</b> These models are not designed for instruction purposes.</p>
|
228 |
</div>
|
229 |
"""
|
230 |
-
disclaimer = """⚠️<b>Any use or sharing of this demo constitues your acceptance of the BigCode [OpenRAIL-M](
|
231 |
-
<br>**Intended Use**: this app and its [supporting model](
|
232 |
|
233 |
with gr.Blocks(theme=theme, analytics_enabled=False, css=css) as demo:
|
234 |
with gr.Column():
|
|
|
13 |
HF_TOKEN = os.environ.get("HF_TOKEN", None)
|
14 |
CHECKPOINT_URL = "Salesforce/codegen-350M-mono"
|
15 |
|
16 |
+
SQLMODEL_PREFIX_URL = "luna-code/sqlmodel-codegen-350M-mono-prefix"
|
17 |
+
SFEPY_PREFIX_URL = "luna-code/sfepy-codegen-350M-mono-prefix"
|
18 |
+
MEGENGINE_PREFIX_URL = "luna-code/megengine-codegen-350M-mono-prefix"
|
19 |
+
MAIN_EVO_PREFIX_URL = "luna-code/codegen-350M-mono-evo-prefix"
|
20 |
+
|
21 |
+
SQLMODEL_FFT_URL = "luna-code/sqlmodel-codegen-350M-mono-fft"
|
22 |
+
SFEPY_FFT_URL = "luna-code/sfepy-codegen-350M-mono-fft"
|
23 |
+
MEGENGINE_FFT_URL = "luna-code/megengine-codegen-350M-mono-fft"
|
24 |
+
MAIN_EVO_FFT_URL = "luna-code/codegen-350M-mono-evo-fft"
|
25 |
+
MAIN_FD_FFT_URL = "luna-code/codegen-350M-mono-fd-fft"
|
26 |
+
|
27 |
+
LANGCHAIN_PREFIX_URL = "luna-code/langchain-codegen-350M-mono-prefix"
|
28 |
+
LLAMAINDEX_PREFIX_URL = "luna-code/llamaindex-codegen-350M-mono-prefix"
|
29 |
+
DSPY_PREFIX_URL = "luna-code/dspy-codegen-350M-mono-prefix"
|
30 |
+
CS_EVO_PREFIX_URL = "luna-code/cs-codegen-350M-mono-evo-prefix"
|
31 |
|
32 |
tokenizer = AutoTokenizer.from_pretrained(CHECKPOINT_URL)
|
33 |
basemodel = AutoModelForCausalLM.from_pretrained(CHECKPOINT_URL, device_map="auto")
|
|
|
214 |
<h1> 🌙 LUNA Models Playground</h1>
|
215 |
</div>
|
216 |
<div style="text-align: left;">
|
217 |
+
<p>This is a demo to generate text and code with unknown libraries. The supported based model is <a href="Salesforce/codegen-350M-mono" style='color: #e6b800;'>CodeGen-350M-mono</a></p>
|
218 |
<p>The supported libraries are:</p>
|
219 |
<ul>
|
220 |
<li><a href="https://sqlmodel.tiangolo.com" style='color: #e6b800;'>SQLModel</a></li>
|
|
|
227 |
<p><b>Please note:</b> These models are not designed for instruction purposes.</p>
|
228 |
</div>
|
229 |
"""
|
230 |
+
disclaimer = """⚠️<b>Any use or sharing of this demo constitues your acceptance of the BigCode [OpenRAIL-M](spaces/bigcode/bigcode-model-license-agreement) License Agreement and the use restrictions included within.</b>\
|
231 |
+
<br>**Intended Use**: this app and its [supporting model](bigcode) are provided for demonstration purposes; not to serve as replacement for human expertise. For more details on the model's limitations in terms of factuality and biases, see the [model card.](hf.co/bigcode)"""
|
232 |
|
233 |
with gr.Blocks(theme=theme, analytics_enabled=False, css=css) as demo:
|
234 |
with gr.Column():
|