jozzy commited on
Commit
85366f6
·
1 Parent(s): f0f0c45

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +10 -1
app.py CHANGED
@@ -6,6 +6,12 @@ def foo(dir):
6
  #return [d.name for d in dir]
7
  return dir.name
8
 
 
 
 
 
 
 
9
  #pinecone = gr.Interface(fn=foo, inputs=gr.inputs.File(file_count="directory"), outputs="text")
10
 
11
  with gr.Blocks() as pinecone:
@@ -17,4 +23,7 @@ with gr.Blocks() as pinecone:
17
 
18
 
19
 
20
- pinecone.launch()
 
 
 
 
6
  #return [d.name for d in dir]
7
  return dir.name
8
 
9
+
10
+ def style_text(input_text):
11
+ styled_text = f'<span style="color: blue; background-color: yellow; font-weight: bold; font-style: italic;">{input_text}</span>'
12
+ return styled_text
13
+
14
+
15
  #pinecone = gr.Interface(fn=foo, inputs=gr.inputs.File(file_count="directory"), outputs="text")
16
 
17
  with gr.Blocks() as pinecone:
 
23
 
24
 
25
 
26
+ #pinecone.launch()
27
+ iface = gr.Interface(fn=style_text, inputs="text", outputs="html")
28
+ iface.launch()
29
+