Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -121,7 +121,7 @@ model = AutoModelForCausalLM.from_pretrained(
|
|
121 |
|
122 |
# Create Gradio interface
|
123 |
with gr.Blocks(theme=gr.themes.Soft(primary_hue=COLOR)) as demo:
|
124 |
-
chatbot = gr.Chatbot(label=EMOJI + " " + MODEL_NAME,
|
125 |
system_prompt = gr.Textbox("You are a code assistant.", label="System prompt")
|
126 |
temperature = gr.Slider(0, 1, 0.3, label="Temperature")
|
127 |
max_new_tokens = gr.Slider(128, 4096, 1024, label="Max new tokens")
|
|
|
121 |
|
122 |
# Create Gradio interface
|
123 |
with gr.Blocks(theme=gr.themes.Soft(primary_hue=COLOR)) as demo:
|
124 |
+
chatbot = gr.Chatbot(label=EMOJI + " " + MODEL_NAME, latex_delimiters=latex_delimiters_set)
|
125 |
system_prompt = gr.Textbox("You are a code assistant.", label="System prompt")
|
126 |
temperature = gr.Slider(0, 1, 0.3, label="Temperature")
|
127 |
max_new_tokens = gr.Slider(128, 4096, 1024, label="Max new tokens")
|