Spaces:
Build error
Build error
Update app.py
Browse files
app.py
CHANGED
|
@@ -113,6 +113,14 @@ import shutil
|
|
| 113 |
|
| 114 |
def upload_file(file, model_name, split_strategy, overlap_size,chunk_size, max_tokens, query, top_k):
|
| 115 |
# Ensure chunk_size and overlap_size are valid integers and provide defaults if needed
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 116 |
try:
|
| 117 |
if chunk_size is None or chunk_size == "":
|
| 118 |
chunk_size = 100 # Default value if not provided
|
|
|
|
| 113 |
|
| 114 |
def upload_file(file, model_name, split_strategy, overlap_size,chunk_size, max_tokens, query, top_k):
|
| 115 |
# Ensure chunk_size and overlap_size are valid integers and provide defaults if needed
|
| 116 |
+
print(file.name)
|
| 117 |
+
print(model_name)
|
| 118 |
+
print(split_strategy)
|
| 119 |
+
print(overlap_size)
|
| 120 |
+
print(chunk_size)
|
| 121 |
+
print(max_tokens)
|
| 122 |
+
print(query)
|
| 123 |
+
print(top_k)
|
| 124 |
try:
|
| 125 |
if chunk_size is None or chunk_size == "":
|
| 126 |
chunk_size = 100 # Default value if not provided
|