masakio0601 commited on
Commit
b45f9cf
·
1 Parent(s): a3121af

Add app file

Browse files
Files changed (3) hide show
  1. app.py +8 -0
  2. poetry.lock +0 -0
  3. pyproject.toml +16 -0
app.py ADDED
@@ -0,0 +1,8 @@
 
 
 
 
 
 
 
 
 
1
+ import gradio as gr
2
+
3
+ with gr.Blocks() as demo:
4
+ txt1 = gr.Textbox(label="input1")
5
+ txt2 = gr.Textbox(label="input2")
6
+ example = gr.Examples([["a", "b"]], [txt1, txt2])
7
+
8
+ demo.launch(debug=True)
poetry.lock ADDED
The diff for this file is too large to render. See raw diff
 
pyproject.toml ADDED
@@ -0,0 +1,16 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ [tool.poetry]
2
+ name = "gradio-playground"
3
+ version = "0.1.0"
4
+ description = ""
5
+ authors = ["masakio0601 <[email protected]>"]
6
+ readme = "README.md"
7
+
8
+ [tool.poetry.dependencies]
9
+ python = "^3.10"
10
+ openai = "^0.28.0"
11
+ gradio = "^3.44.4"
12
+
13
+
14
+ [build-system]
15
+ requires = ["poetry-core"]
16
+ build-backend = "poetry.core.masonry.api"