DeepLearning101 commited on
Commit
c94de42
·
verified ·
1 Parent(s): 27c34b0

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -0
app.py CHANGED
@@ -61,6 +61,10 @@ async def upload_file(LLM_URL, LLM_API, file_path, user_id):
61
  if not os.path.exists(file_path):
62
  return f"Error: File {file_path} not found"
63
  mime_type, _ = mimetypes.guess_type(file_path)
 
 
 
 
64
  with open(file_path, 'rb') as f:
65
  async with aiohttp.ClientSession() as session:
66
  form_data = aiohttp.FormData()
 
61
  if not os.path.exists(file_path):
62
  return f"Error: File {file_path} not found"
63
  mime_type, _ = mimetypes.guess_type(file_path)
64
+
65
+ # ✅ 加這一行 debug
66
+ print("Uploading file:", filename, "mime_type:", mime_type)
67
+
68
  with open(file_path, 'rb') as f:
69
  async with aiohttp.ClientSession() as session:
70
  form_data = aiohttp.FormData()