Update app.py
Browse files
app.py
CHANGED
@@ -4,7 +4,7 @@ from transformers import AutoTokenizer
|
|
4 |
with gr.Blocks() as demo:
|
5 |
huggingface = gr.Textbox(value="unsloth/Meta-Llama-3.1-8B-Instruct", show_label=True, label="huggingface ID")
|
6 |
button = gr.Button(value="get chat template")
|
7 |
-
output = gr.Textbox(lines=10.0, show_copy_button=True, visible=False)
|
8 |
|
9 |
@button.click(inputs=[huggingface], outputs=[output])
|
10 |
def submit(huggingface_id):
|
|
|
4 |
with gr.Blocks() as demo:
|
5 |
huggingface = gr.Textbox(value="unsloth/Meta-Llama-3.1-8B-Instruct", show_label=True, label="huggingface ID")
|
6 |
button = gr.Button(value="get chat template")
|
7 |
+
output = gr.Textbox(lines=10.0, show_copy_button=True, show_label=True, label="chat template", visible=False)
|
8 |
|
9 |
@button.click(inputs=[huggingface], outputs=[output])
|
10 |
def submit(huggingface_id):
|