namberino
commited on
Commit
·
a5e6bf4
1
Parent(s):
ffd37d2
Testing
Browse files
app.py
CHANGED
@@ -102,7 +102,7 @@ def call_generate(file_obj, topics, n_questions, difficulty, question_type):
|
|
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":
|
106 |
|
107 |
print("Files payload:")
|
108 |
print(files)
|
|
|
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": open(file_obj, 'rb')}
|
106 |
|
107 |
print("Files payload:")
|
108 |
print(files)
|