jbilcke-hf HF staff commited on
Commit
42548f2
β€’
1 Parent(s): 312de82

add example for gradio

Browse files
Files changed (2) hide show
  1. src/getGradioApp.mts +2 -2
  2. src/gradioDoc.mts +1 -1
src/getGradioApp.mts CHANGED
@@ -1,4 +1,4 @@
1
- import { streamlitDoc } from "./streamlitDoc.mts";
2
 
3
  export function getGradioApp(prompt: string) {
4
  const prefix = "# In app.py:\n```"
@@ -9,7 +9,7 @@ export function getGradioApp(prompt: string) {
9
  content: [
10
  `You are a Python developer, expert at crafting Gradio applications to deploy to Hugging Face.`,
11
  `Here is an example of a minimal Gradio application:`,
12
- streamlitDoc
13
  ].filter(item => item).join("\n")
14
  },
15
  {
 
1
+ import { gradioDoc } from "./gradioDoc.mts"
2
 
3
  export function getGradioApp(prompt: string) {
4
  const prefix = "# In app.py:\n```"
 
9
  content: [
10
  `You are a Python developer, expert at crafting Gradio applications to deploy to Hugging Face.`,
11
  `Here is an example of a minimal Gradio application:`,
12
+ gradioDoc
13
  ].filter(item => item).join("\n")
14
  },
15
  {
src/gradioDoc.mts CHANGED
@@ -1,4 +1,4 @@
1
- export const streamlitDoc = `
2
  # Gradio Code Example
3
 
4
  \`\`\`python
 
1
+ export const gradioDoc = `
2
  # Gradio Code Example
3
 
4
  \`\`\`python