Spaces:
Sleeping
Sleeping
Update app_gradio.py
Browse files- app_gradio.py +0 -5
app_gradio.py
CHANGED
|
@@ -107,9 +107,6 @@ def get_entries():
|
|
| 107 |
|
| 108 |
return output
|
| 109 |
|
| 110 |
-
# --- Giao diện Gradio (Sử dụng Blocks) ---
|
| 111 |
-
# (Giữ nguyên giao diện Gradio Blocks như cũ)
|
| 112 |
-
|
| 113 |
with gr.Blocks(title="Gradio + PG (Local)") as gr_interface:
|
| 114 |
gr.Markdown("# Sổ khách (Gradio + PostgreSQL Cục bộ)")
|
| 115 |
gr.Markdown("Để lại tin nhắn và xem các tin nhắn trước đó. CẢNH BÁO: Dữ liệu sẽ bị mất khi Space khởi động lại!")
|
|
@@ -141,7 +138,5 @@ with gr.Blocks(title="Gradio + PG (Local)") as gr_interface:
|
|
| 141 |
outputs=[username_input, message_input]
|
| 142 |
)
|
| 143 |
|
| 144 |
-
|
| 145 |
-
# --- Gắn vào FastAPI (Giống như dự án cũ của bạn) ---
|
| 146 |
app = FastAPI()
|
| 147 |
app = gr.mount_gradio_app(app, gr_interface, path="/")
|
|
|
|
| 107 |
|
| 108 |
return output
|
| 109 |
|
|
|
|
|
|
|
|
|
|
| 110 |
with gr.Blocks(title="Gradio + PG (Local)") as gr_interface:
|
| 111 |
gr.Markdown("# Sổ khách (Gradio + PostgreSQL Cục bộ)")
|
| 112 |
gr.Markdown("Để lại tin nhắn và xem các tin nhắn trước đó. CẢNH BÁO: Dữ liệu sẽ bị mất khi Space khởi động lại!")
|
|
|
|
| 138 |
outputs=[username_input, message_input]
|
| 139 |
)
|
| 140 |
|
|
|
|
|
|
|
| 141 |
app = FastAPI()
|
| 142 |
app = gr.mount_gradio_app(app, gr_interface, path="/")
|