Spaces:
Runtime error
Runtime error
Upload app.py
Browse files
app.py
CHANGED
|
@@ -42,13 +42,13 @@ def instruct_generate(
|
|
| 42 |
top_k: The number of top most probable tokens to consider in the sampling process.
|
| 43 |
temperature: A value controlling the randomness of the sampling process. Higher values result in more random
|
| 44 |
"""
|
| 45 |
-
scene_name = os.path.basename(img_path).split(".")[0]
|
| 46 |
# if input in input_value_list:
|
| 47 |
# input = example_dict[scene_name]["input"]
|
| 48 |
if "..." in input:
|
| 49 |
input = input.replace("...", "")
|
| 50 |
output = [prompt, input, max_new_tokens, top_k, temperature]
|
| 51 |
-
print(
|
| 52 |
return output
|
| 53 |
|
| 54 |
# 配置具体参数
|
|
|
|
| 42 |
top_k: The number of top most probable tokens to consider in the sampling process.
|
| 43 |
temperature: A value controlling the randomness of the sampling process. Higher values result in more random
|
| 44 |
"""
|
| 45 |
+
# scene_name = os.path.basename(img_path).split(".")[0]
|
| 46 |
# if input in input_value_list:
|
| 47 |
# input = example_dict[scene_name]["input"]
|
| 48 |
if "..." in input:
|
| 49 |
input = input.replace("...", "")
|
| 50 |
output = [prompt, input, max_new_tokens, top_k, temperature]
|
| 51 |
+
print(img_path)
|
| 52 |
return output
|
| 53 |
|
| 54 |
# 配置具体参数
|