abidlabs HF Staff commited on
Commit
66319e8
·
1 Parent(s): 4ba7980

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +12 -2
app.py CHANGED
@@ -1,9 +1,19 @@
1
  import gradio as gr
2
 
 
 
 
 
 
 
 
 
3
  def generate(x):
4
  return [
5
- (f"abc ![](/file={x})", "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 ![](/file={x}) klm ![](/file={x})", "def"),
14
+ ("ghi", "jkl"),
15
+ (f"abc ![](/file={x}) klm", "def"),
16
+ ]
17
 
18
 
19
  with gr.Blocks() as demo: