Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -103,7 +103,7 @@ def img_to_file_list(imgs):
|
|
| 103 |
sub_path = './' + path + '/' + 'search' + '_' + str(counter["dir_num"])
|
| 104 |
|
| 105 |
# Check whether the specified path exists or not
|
| 106 |
-
isExist = os.path.exists('
|
| 107 |
|
| 108 |
if not isExist:
|
| 109 |
print("Directory does not exists")
|
|
@@ -157,9 +157,6 @@ with gr.Blocks() as demo:
|
|
| 157 |
text = gr.Textbox(
|
| 158 |
value = "讙'讬谞住 讻讞讜诇 诇讙讘专讬诐",
|
| 159 |
label="Enter the product characteristics:",
|
| 160 |
-
#show_label=True,
|
| 161 |
-
#max_lines=1,
|
| 162 |
-
#placeholder="Enter your prompt",
|
| 163 |
)
|
| 164 |
|
| 165 |
alpha = gr.Slider(0, 1, step=0.01, label='Choose alpha:', value = 0.05)
|
|
|
|
| 103 |
sub_path = './' + path + '/' + 'search' + '_' + str(counter["dir_num"])
|
| 104 |
|
| 105 |
# Check whether the specified path exists or not
|
| 106 |
+
isExist = os.path.exists('.'+'/'+path)
|
| 107 |
|
| 108 |
if not isExist:
|
| 109 |
print("Directory does not exists")
|
|
|
|
| 157 |
text = gr.Textbox(
|
| 158 |
value = "讙'讬谞住 讻讞讜诇 诇讙讘专讬诐",
|
| 159 |
label="Enter the product characteristics:",
|
|
|
|
|
|
|
|
|
|
| 160 |
)
|
| 161 |
|
| 162 |
alpha = gr.Slider(0, 1, step=0.01, label='Choose alpha:', value = 0.05)
|