namberino commited on
Commit
5ee537b
·
1 Parent(s): 12a4e6c
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -100,12 +100,12 @@ def call_generate(file_obj, topics, n_questions, difficulty, question_type):
100
 
101
  # Read the uploaded file bytes and create multipart payload
102
  file_bytes = read_file_input(file_obj)
103
- print(file_bytes)
104
  if not file_bytes:
105
  return {"error": "Could not read uploaded file (empty or unknown format)."}
106
  files = {"file": file_bytes}
107
 
108
- # print(files)
 
109
 
110
  data = {
111
  "topics": topics if topics is not None else "",
 
100
 
101
  # Read the uploaded file bytes and create multipart payload
102
  file_bytes = read_file_input(file_obj)
 
103
  if not file_bytes:
104
  return {"error": "Could not read uploaded file (empty or unknown format)."}
105
  files = {"file": file_bytes}
106
 
107
+ print("Files payload:")
108
+ print(files)
109
 
110
  data = {
111
  "topics": topics if topics is not None else "",