simplfy code languages
Browse files
app.py
CHANGED
|
@@ -38,7 +38,7 @@ from dashscope.utils.oss_utils import check_and_upload_local
|
|
| 38 |
|
| 39 |
# Gradio supported languages for syntax highlighting
|
| 40 |
GRADIO_SUPPORTED_LANGUAGES = [
|
| 41 |
-
"python", "c", "cpp", "markdown", "latex", "json", "html"
|
| 42 |
]
|
| 43 |
|
| 44 |
def get_gradio_language(language):
|
|
@@ -7706,7 +7706,7 @@ with gr.Blocks(
|
|
| 7706 |
)
|
| 7707 |
# Language dropdown for code generation (add Streamlit and Gradio as first-class options)
|
| 7708 |
language_choices = [
|
| 7709 |
-
"html", "gradio", "transformers.js", "streamlit", "python", "svelte", "c", "cpp", "markdown", "latex", "json"
|
| 7710 |
]
|
| 7711 |
language_dropdown = gr.Dropdown(
|
| 7712 |
choices=language_choices,
|
|
|
|
| 38 |
|
| 39 |
# Gradio supported languages for syntax highlighting
|
| 40 |
GRADIO_SUPPORTED_LANGUAGES = [
|
| 41 |
+
"python", "c", "cpp", "markdown", "latex", "json", "html"
|
| 42 |
]
|
| 43 |
|
| 44 |
def get_gradio_language(language):
|
|
|
|
| 7706 |
)
|
| 7707 |
# Language dropdown for code generation (add Streamlit and Gradio as first-class options)
|
| 7708 |
language_choices = [
|
| 7709 |
+
"html", "gradio", "transformers.js", "streamlit", "python", "svelte", "c", "cpp", "markdown", "latex", "json"
|
| 7710 |
]
|
| 7711 |
language_dropdown = gr.Dropdown(
|
| 7712 |
choices=language_choices,
|