Spaces:
Running
on
Zero
Running
on
Zero
root
commited on
Commit
·
4b2b3d0
1
Parent(s):
78169b4
update app
Browse files
app.py
CHANGED
|
@@ -461,16 +461,17 @@ css = '''
|
|
| 461 |
|
| 462 |
def create_chatbot_demo():
|
| 463 |
with gr.Blocks(css=css) as demo:
|
| 464 |
-
gr.Markdown("# DreamOn: Diffusion Language Models For Code Infilling Beyond Fixed-size Canvas\nClick **Example Prompt** to
|
| 465 |
gr.Markdown(
|
| 466 |
"[[Model Card](https://huggingface.co/Dream-org/DreamOn-v0-7B)] "
|
| 467 |
"[[Blog](https://hkunlp.github.io/blog/2025/dreamon/)]"
|
|
|
|
| 468 |
)
|
| 469 |
|
| 470 |
with gr.Row():
|
| 471 |
sample_btn = gr.Button("Example Prompt")
|
| 472 |
generate_btn = gr.Button("Generate", variant="primary")
|
| 473 |
-
check_btn = gr.Button("Run
|
| 474 |
clear_btn = gr.Button("Clear")
|
| 475 |
|
| 476 |
with gr.Row():
|
|
|
|
| 461 |
|
| 462 |
def create_chatbot_demo():
|
| 463 |
with gr.Blocks(css=css) as demo:
|
| 464 |
+
gr.Markdown("# DreamOn: Diffusion Language Models For Code Infilling Beyond Fixed-size Canvas\nClick **Example Prompt** to obtain a prefix and suffix, then click **Generate** to create the code.\nClick **Run Test Cases** to verify the correctness of the code. You can also input your own test cases.")
|
| 465 |
gr.Markdown(
|
| 466 |
"[[Model Card](https://huggingface.co/Dream-org/DreamOn-v0-7B)] "
|
| 467 |
"[[Blog](https://hkunlp.github.io/blog/2025/dreamon/)]"
|
| 468 |
+
"[[Github](https://github.com/DreamLM/DreamOn)]"
|
| 469 |
)
|
| 470 |
|
| 471 |
with gr.Row():
|
| 472 |
sample_btn = gr.Button("Example Prompt")
|
| 473 |
generate_btn = gr.Button("Generate", variant="primary")
|
| 474 |
+
check_btn = gr.Button("Run Test Cases")
|
| 475 |
clear_btn = gr.Button("Clear")
|
| 476 |
|
| 477 |
with gr.Row():
|