yukee1992 commited on
Commit
9f45eda
Β·
verified Β·
1 Parent(s): 9d4820a

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -9
app.py CHANGED
@@ -130,7 +130,7 @@ def debug_info():
130
 
131
  print("\nπŸ“ Creating Gradio interface...")
132
 
133
- with gr.Blocks(title="Video Project Manager - DEBUG", css=".gradio-container {max-width: 1200px !important}") as demo:
134
  gr.Markdown("# 🎬 Video Project Manager - DEBUG MODE")
135
  gr.Markdown("This version includes extensive logging. Check the Space logs for debug output.")
136
 
@@ -213,7 +213,7 @@ with gr.Blocks(title="Video Project Manager - DEBUG", css=".gradio-container {ma
213
  # Test health endpoint
214
  curl -X POST "https://yukee1992-video-project-manager.hf.space/api/health" \\
215
  -H "Content-Type: application/json" \\
216
- -d '{"data": []}'
217
  ```
218
  """)
219
 
@@ -261,12 +261,6 @@ with gr.Blocks(title="Video Project Manager - DEBUG", css=".gradio-container {ma
261
  )
262
 
263
  print("πŸ“‘ API endpoints registered successfully!")
264
-
265
- # Also allow direct API access via function name
266
- gr.Button(
267
- fn=health_check,
268
- api_name="health_check" # Alternative endpoint name
269
- )
270
 
271
  # =============================================
272
  # LAUNCH WITH DEBUG
@@ -280,7 +274,6 @@ if __name__ == "__main__":
280
  print(f" - POST /api/create")
281
  print(f" - POST /api/search")
282
  print(f" - POST /api/health")
283
- print(f" - POST /api/health_check")
284
  print("\nπŸ” Test commands:")
285
  print(' curl -X POST "https://yukee1992-video-project-manager.hf.space/api/health" -H "Content-Type: application/json" -d "{}"')
286
  print(' curl -X POST "https://yukee1992-video-project-manager.hf.space/api/create" -H "Content-Type: application/json" -d \'{"data": ["Test", "Content", "tags", "prompt", "{}"]}\'')
 
130
 
131
  print("\nπŸ“ Creating Gradio interface...")
132
 
133
+ with gr.Blocks(title="Video Project Manager - DEBUG") as demo:
134
  gr.Markdown("# 🎬 Video Project Manager - DEBUG MODE")
135
  gr.Markdown("This version includes extensive logging. Check the Space logs for debug output.")
136
 
 
213
  # Test health endpoint
214
  curl -X POST "https://yukee1992-video-project-manager.hf.space/api/health" \\
215
  -H "Content-Type: application/json" \\
216
+ -d '{}'
217
  ```
218
  """)
219
 
 
261
  )
262
 
263
  print("πŸ“‘ API endpoints registered successfully!")
 
 
 
 
 
 
264
 
265
  # =============================================
266
  # LAUNCH WITH DEBUG
 
274
  print(f" - POST /api/create")
275
  print(f" - POST /api/search")
276
  print(f" - POST /api/health")
 
277
  print("\nπŸ” Test commands:")
278
  print(' curl -X POST "https://yukee1992-video-project-manager.hf.space/api/health" -H "Content-Type: application/json" -d "{}"')
279
  print(' curl -X POST "https://yukee1992-video-project-manager.hf.space/api/create" -H "Content-Type: application/json" -d \'{"data": ["Test", "Content", "tags", "prompt", "{}"]}\'')