Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -96,7 +96,7 @@ def eval_model(args, model_name = model_name, model_path = model_path):
|
|
96 |
ans_file.flush()
|
97 |
ans_file.close()
|
98 |
|
99 |
-
def gradio_wrapper(
|
100 |
|
101 |
question_file_path = os.path.join(tempfile.mkdtemp(), "question.jsonl")
|
102 |
with open(question_file_path, "w") as f:
|
|
|
96 |
ans_file.flush()
|
97 |
ans_file.close()
|
98 |
|
99 |
+
def gradio_wrapper( image_folder, question_file, answers_file, conv_mode, num_chunks, chunk_idx, temperature, top_p, num_beams, model_path = model_path , model_name = model_name):
|
100 |
|
101 |
question_file_path = os.path.join(tempfile.mkdtemp(), "question.jsonl")
|
102 |
with open(question_file_path, "w") as f:
|