mirror of
https://github.com/gradio-app/gradio.git
synced 2024-11-27 01:40:20 +08:00
Add env to lite build (#7000)
* add venv * comma * add changeset --------- Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
This commit is contained in:
parent
576b7ce827
commit
a7db8c1b8a
5
.changeset/fast-doodles-carry.md
Normal file
5
.changeset/fast-doodles-carry.md
Normal file
@ -0,0 +1,5 @@
|
||||
---
|
||||
"@gradio/lite": minor
|
||||
---
|
||||
|
||||
feat:Add env to lite build
|
3
.github/workflows/publish-npm.yml
vendored
3
.github/workflows/publish-npm.yml
vendored
@ -26,7 +26,8 @@ jobs:
|
||||
skip_build: 'true'
|
||||
- name: Build packages
|
||||
run: |
|
||||
python -m pip install build
|
||||
. venv/bin/activate
|
||||
pip install build
|
||||
pnpm --filter @gradio/client --filter @gradio/lite build
|
||||
- name: create and publish versions
|
||||
id: changesets
|
||||
|
@ -30,7 +30,7 @@
|
||||
import gradio as gr
|
||||
|
||||
def greet(name):
|
||||
return "Hello " + name + "!"
|
||||
return "Hello, " + name + "!"
|
||||
|
||||
gr.Interface(fn=greet, inputs="text", outputs="text").launch()
|
||||
`,
|
||||
|
Loading…
Reference in New Issue
Block a user