Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
@@ -1,9 +1,19 @@
|
|
1 |
import gradio as gr
|
2 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
3 |
def generate(x):
|
4 |
return [
|
5 |
-
(f"abc ", "def"),
|
6 |
-
("ghi", "jkl")
|
|
|
|
|
7 |
|
8 |
|
9 |
with gr.Blocks() as demo:
|
|
|
1 |
import gradio as gr
|
2 |
|
3 |
+
code = """
|
4 |
+
abc
|
5 |
+
```py
|
6 |
+
def test(x):
|
7 |
+
return x
|
8 |
+
```
|
9 |
+
"""
|
10 |
+
|
11 |
def generate(x):
|
12 |
return [
|
13 |
+
(f"abc  klm ", "def"),
|
14 |
+
("ghi", "jkl"),
|
15 |
+
(f"abc  klm", "def"),
|
16 |
+
]
|
17 |
|
18 |
|
19 |
with gr.Blocks() as demo:
|