Spaces:
Sleeping
Sleeping
Openenv validate issues
Browse files- pyproject.toml +3 -0
- server/app.py +8 -1
- uv.lock +0 -0
pyproject.toml
CHANGED
|
@@ -21,6 +21,9 @@ dependencies = [
|
|
| 21 |
[project.optional-dependencies]
|
| 22 |
dev = ["pytest>=7.0", "pytest-asyncio", "httpx"]
|
| 23 |
|
|
|
|
|
|
|
|
|
|
| 24 |
[tool.setuptools.packages.find]
|
| 25 |
where = ["."]
|
| 26 |
include = ["support_ticket_env*"]
|
|
|
|
| 21 |
[project.optional-dependencies]
|
| 22 |
dev = ["pytest>=7.0", "pytest-asyncio", "httpx"]
|
| 23 |
|
| 24 |
+
[project.scripts]
|
| 25 |
+
server = "support_ticket_env.server.app:main"
|
| 26 |
+
|
| 27 |
[tool.setuptools.packages.find]
|
| 28 |
where = ["."]
|
| 29 |
include = ["support_ticket_env*"]
|
server/app.py
CHANGED
|
@@ -21,4 +21,11 @@ try:
|
|
| 21 |
app = gr.mount_gradio_app(app, demo, path="/playground")
|
| 22 |
print("Custom Gradio UI mounted at /playground")
|
| 23 |
except Exception as e:
|
| 24 |
-
print(f"Gradio UI not mounted: {e}")
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 21 |
app = gr.mount_gradio_app(app, demo, path="/playground")
|
| 22 |
print("Custom Gradio UI mounted at /playground")
|
| 23 |
except Exception as e:
|
| 24 |
+
print(f"Gradio UI not mounted: {e}")
|
| 25 |
+
|
| 26 |
+
def main():
|
| 27 |
+
import uvicorn
|
| 28 |
+
uvicorn.run(app, host="0.0.0.0", port=7860)
|
| 29 |
+
|
| 30 |
+
if __name__ == "__main__":
|
| 31 |
+
main()
|
uv.lock
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|