mirror of
https://github.com/gradio-app/gradio.git
synced 2025-02-05 11:10:03 +08:00
Fix .config/playwright-setup.js deleting unused envvar and duplicated import (#8043)
This commit is contained in:
parent
eb8a8025ae
commit
462d2e9a13
@ -62,7 +62,6 @@ function spawn_gradio_app(app, port, verbose) {
|
||||
cwd: ROOT,
|
||||
env: {
|
||||
...process.env,
|
||||
GRADIO_SERVER_PORT: `7879`,
|
||||
PYTHONUNBUFFERED: "true",
|
||||
GRADIO_ANALYTICS_ENABLED: "False",
|
||||
GRADIO_IS_E2E_TEST: "1"
|
||||
@ -107,10 +106,11 @@ function kill_process(process) {
|
||||
}
|
||||
|
||||
function make_app(demos, port) {
|
||||
return `import gradio as gr
|
||||
return `
|
||||
import uvicorn
|
||||
from fastapi import FastAPI
|
||||
import gradio as gr
|
||||
|
||||
${demos.map((d) => `from demo.${d}.run import demo as ${d}`).join("\n")}
|
||||
|
||||
app = FastAPI()
|
||||
|
Loading…
Reference in New Issue
Block a user