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 # ์๋ฌ ์ ํํ์ฌ ๋ฌธ์ ํ์
์ฉ์ดํ๊ฒ
|