Spaces:
Running
Running
Julian Bilcke
commited on
Commit
Β·
42548f2
1
Parent(s):
312de82
add example for gradio
Browse files- src/getGradioApp.mts +2 -2
- src/gradioDoc.mts +1 -1
src/getGradioApp.mts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
| 1 |
-
import {
|
| 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 |
-
|
| 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
|
| 2 |
# Gradio Code Example
|
| 3 |
|
| 4 |
\`\`\`python
|
|
|
|
| 1 |
+
export const gradioDoc = `
|
| 2 |
# Gradio Code Example
|
| 3 |
|
| 4 |
\`\`\`python
|