eienmojiki commited on
Commit
fe3d9a4
·
verified ·
1 Parent(s): df3812c

Update app_gradio.py

Browse files
Files changed (1) hide show
  1. 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="/")