akhaliq HF Staff commited on
Commit
3a574f6
·
1 Parent(s): 23a7fcd

update code language

Browse files
Files changed (1) hide show
  1. app.py +2 -2
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):
@@ -7350,7 +7350,7 @@ with gr.Blocks(
7350
  )
7351
  # Language dropdown for code generation (add Streamlit and Gradio as first-class options)
7352
  language_choices = [
7353
- "html", "gradio", "transformers.js", "streamlit", "python", "svelte", "c", "cpp", "markdown", "latex", "json"
7354
  ]
7355
  language_dropdown = gr.Dropdown(
7356
  choices=language_choices,
 
38
 
39
  # Gradio supported languages for syntax highlighting
40
  GRADIO_SUPPORTED_LANGUAGES = [
41
+ "python", "json", "html"
42
  ]
43
 
44
  def get_gradio_language(language):
 
7350
  )
7351
  # Language dropdown for code generation (add Streamlit and Gradio as first-class options)
7352
  language_choices = [
7353
+ "html", "gradio", "transformers.js", "streamlit", "comfyui"
7354
  ]
7355
  language_dropdown = gr.Dropdown(
7356
  choices=language_choices,