Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -120,13 +120,13 @@ model = AutoModelForCausalLM.from_pretrained(
|
|
120 |
)
|
121 |
|
122 |
# Create Gradio interface
|
123 |
-
gr.
|
124 |
predict,
|
125 |
title=EMOJI + " " + MODEL_NAME,
|
126 |
description=DESCRIPTION,
|
127 |
latex_delimiters=latex_delimiters_set,
|
128 |
|
129 |
-
|
130 |
additional_inputs_accordion=gr.Accordion(label="⚙️ Parameters", open=False),
|
131 |
additional_inputs=[
|
132 |
gr.Textbox("You are a code assistant.", label="System prompt"),
|
|
|
120 |
)
|
121 |
|
122 |
# Create Gradio interface
|
123 |
+
gr.ChatInterface(
|
124 |
predict,
|
125 |
title=EMOJI + " " + MODEL_NAME,
|
126 |
description=DESCRIPTION,
|
127 |
latex_delimiters=latex_delimiters_set,
|
128 |
|
129 |
+
latex_delimiters=("$$", "$$"),
|
130 |
additional_inputs_accordion=gr.Accordion(label="⚙️ Parameters", open=False),
|
131 |
additional_inputs=[
|
132 |
gr.Textbox("You are a code assistant.", label="System prompt"),
|