pablovela5620 commited on
Commit
a611825
1 Parent(s): ee00dd1

Add main.py and update pixi.toml

Browse files
Files changed (3) hide show
  1. main.py +9 -0
  2. pixi.lock +0 -0
  3. pixi.toml +2 -3
main.py ADDED
@@ -0,0 +1,9 @@
 
 
 
 
 
 
 
 
 
 
1
+ import gradio as gr
2
+
3
+
4
+ def greet(name):
5
+ return "Hello " + name + "!"
6
+
7
+
8
+ demo = gr.Interface(fn=greet, inputs="text", outputs="text")
9
+ demo.launch()
pixi.lock CHANGED
The diff for this file is too large to render. See raw diff
 
pixi.toml CHANGED
@@ -7,9 +7,8 @@ channels = ["conda-forge"]
7
  platforms = ["linux-64"]
8
 
9
  [tasks]
10
- hi="""
11
- python -c "print('hi')"
12
- """
13
 
14
  [dependencies]
15
  python = "3.11.*"
 
 
7
  platforms = ["linux-64"]
8
 
9
  [tasks]
10
+ start="python main.py"
 
 
11
 
12
  [dependencies]
13
  python = "3.11.*"
14
+ gradio = ">=4.19.2,<4.20"