Spaces:
Sleeping
Sleeping
ㅅㅎㅇ
commited on
Commit
·
7281574
1
Parent(s):
02305b5
fix: remove show_api parameter from launch() for gradio 5.0
Browse files- CodeWeaver/ui/app.py +0 -1
- app.py +1 -1
CodeWeaver/ui/app.py
CHANGED
|
@@ -235,7 +235,6 @@ if __name__ == "__main__":
|
|
| 235 |
server_name="0.0.0.0",
|
| 236 |
server_port=7860,
|
| 237 |
share=False,
|
| 238 |
-
show_api=False,
|
| 239 |
theme=gr.themes.Soft(),
|
| 240 |
css=CSS
|
| 241 |
)
|
|
|
|
| 235 |
server_name="0.0.0.0",
|
| 236 |
server_port=7860,
|
| 237 |
share=False,
|
|
|
|
| 238 |
theme=gr.themes.Soft(),
|
| 239 |
css=CSS
|
| 240 |
)
|
app.py
CHANGED
|
@@ -31,7 +31,7 @@ def main() -> None:
|
|
| 31 |
|
| 32 |
# HF Spaces commonly provides PORT; fall back to 7860 for local.
|
| 33 |
port = int(os.getenv("PORT", "7860"))
|
| 34 |
-
demo.launch(server_name="0.0.0.0", server_port=port
|
| 35 |
|
| 36 |
|
| 37 |
if __name__ == "__main__":
|
|
|
|
| 31 |
|
| 32 |
# HF Spaces commonly provides PORT; fall back to 7860 for local.
|
| 33 |
port = int(os.getenv("PORT", "7860"))
|
| 34 |
+
demo.launch(server_name="0.0.0.0", server_port=port)
|
| 35 |
|
| 36 |
|
| 37 |
if __name__ == "__main__":
|