Spaces:
Running
on
Zero
Running
on
Zero
Update app.py
Browse files
app.py
CHANGED
|
@@ -236,6 +236,7 @@ GRADIO_EXAMPLES = [
|
|
| 236 |
]
|
| 237 |
|
| 238 |
# Create Gradio interface
|
|
|
|
| 239 |
demo = gr.Interface(
|
| 240 |
fn=generate_diagram,
|
| 241 |
inputs=[
|
|
@@ -279,12 +280,13 @@ demo = gr.Interface(
|
|
| 279 |
βββ DETAIL 2 [Icon]
|
| 280 |
```
|
| 281 |
""",
|
| 282 |
-
examples=EXAMPLES
|
| 283 |
cache_examples=True,
|
| 284 |
-
theme=gr.themes.Soft()
|
|
|
|
| 285 |
)
|
| 286 |
|
| 287 |
-
# Launch
|
| 288 |
if __name__ == "__main__":
|
| 289 |
try:
|
| 290 |
demo.queue(max_size=10)
|
|
@@ -293,7 +295,9 @@ if __name__ == "__main__":
|
|
| 293 |
server_port=7860,
|
| 294 |
share=False,
|
| 295 |
show_error=True,
|
| 296 |
-
enable_queue=True
|
|
|
|
| 297 |
)
|
| 298 |
except Exception as e:
|
| 299 |
-
print(f"Error launching app: {str(e)}")
|
|
|
|
|
|
| 236 |
]
|
| 237 |
|
| 238 |
# Create Gradio interface
|
| 239 |
+
# Gradio interface λΆλΆ μμ
|
| 240 |
demo = gr.Interface(
|
| 241 |
fn=generate_diagram,
|
| 242 |
inputs=[
|
|
|
|
| 280 |
βββ DETAIL 2 [Icon]
|
| 281 |
```
|
| 282 |
""",
|
| 283 |
+
examples=GRADIO_EXAMPLES, # EXAMPLES λμ GRADIO_EXAMPLES μ¬μ©
|
| 284 |
cache_examples=True,
|
| 285 |
+
theme=gr.themes.Soft(),
|
| 286 |
+
allow_flagging="never" # λΆνμν νλκΉ
κΈ°λ₯ μ κ±°
|
| 287 |
)
|
| 288 |
|
| 289 |
+
# Launch λΆλΆ μμ
|
| 290 |
if __name__ == "__main__":
|
| 291 |
try:
|
| 292 |
demo.queue(max_size=10)
|
|
|
|
| 295 |
server_port=7860,
|
| 296 |
share=False,
|
| 297 |
show_error=True,
|
| 298 |
+
enable_queue=True,
|
| 299 |
+
debug=True # λλ²κΉ
μ 보 νμ±ν
|
| 300 |
)
|
| 301 |
except Exception as e:
|
| 302 |
+
print(f"Error launching app: {str(e)}")
|
| 303 |
+
raise # μλ¬ μ ννμ¬ λ¬Έμ νμ
μ©μ΄νκ²
|