fix error
Browse files- .idea/workspace.xml +2 -1
- app.py +1 -2
.idea/workspace.xml
CHANGED
|
@@ -6,6 +6,7 @@
|
|
| 6 |
<component name="ChangeListManager">
|
| 7 |
<list default="true" id="d268fe54-cb43-4451-8f43-ce4d20d5699c" name="Changes" comment="">
|
| 8 |
<change beforePath="$PROJECT_DIR$/.idea/workspace.xml" beforeDir="false" afterPath="$PROJECT_DIR$/.idea/workspace.xml" afterDir="false" />
|
|
|
|
| 9 |
</list>
|
| 10 |
<option name="SHOW_DIALOG" value="false" />
|
| 11 |
<option name="HIGHLIGHT_CONFLICTS" value="true" />
|
|
@@ -68,7 +69,7 @@
|
|
| 68 |
<workItem from="1713919910236" duration="1099000" />
|
| 69 |
<workItem from="1713921043559" duration="495000" />
|
| 70 |
<workItem from="1714055653743" duration="2106000" />
|
| 71 |
-
<workItem from="1714065328028" duration="
|
| 72 |
</task>
|
| 73 |
<servers />
|
| 74 |
</component>
|
|
|
|
| 6 |
<component name="ChangeListManager">
|
| 7 |
<list default="true" id="d268fe54-cb43-4451-8f43-ce4d20d5699c" name="Changes" comment="">
|
| 8 |
<change beforePath="$PROJECT_DIR$/.idea/workspace.xml" beforeDir="false" afterPath="$PROJECT_DIR$/.idea/workspace.xml" afterDir="false" />
|
| 9 |
+
<change beforePath="$PROJECT_DIR$/app.py" beforeDir="false" afterPath="$PROJECT_DIR$/app.py" afterDir="false" />
|
| 10 |
</list>
|
| 11 |
<option name="SHOW_DIALOG" value="false" />
|
| 12 |
<option name="HIGHLIGHT_CONFLICTS" value="true" />
|
|
|
|
| 69 |
<workItem from="1713919910236" duration="1099000" />
|
| 70 |
<workItem from="1713921043559" duration="495000" />
|
| 71 |
<workItem from="1714055653743" duration="2106000" />
|
| 72 |
+
<workItem from="1714065328028" duration="780000" />
|
| 73 |
</task>
|
| 74 |
<servers />
|
| 75 |
</component>
|
app.py
CHANGED
|
@@ -63,7 +63,7 @@ def generate_button_clicked(*args):
|
|
| 63 |
|
| 64 |
if input_image is None:
|
| 65 |
raise gr.Error("Missing Input: input_image")
|
| 66 |
-
if len(edit_instruction) == 0:
|
| 67 |
return [input_image, seed, cfgtext, cfgimage]
|
| 68 |
|
| 69 |
GoogleDrive_connection_Path = ""
|
|
@@ -74,7 +74,6 @@ def generate_button_clicked(*args):
|
|
| 74 |
create_folder("local_dataset")
|
| 75 |
|
| 76 |
image_ID = get_random_str(4)
|
| 77 |
-
|
| 78 |
input_image_name = rf"input_image_{image_ID}.png"
|
| 79 |
output_image_name = rf"output_image_{image_ID}.png"
|
| 80 |
|
|
|
|
| 63 |
|
| 64 |
if input_image is None:
|
| 65 |
raise gr.Error("Missing Input: input_image")
|
| 66 |
+
if len(edit_instruction) == 0: # perform no edit
|
| 67 |
return [input_image, seed, cfgtext, cfgimage]
|
| 68 |
|
| 69 |
GoogleDrive_connection_Path = ""
|
|
|
|
| 74 |
create_folder("local_dataset")
|
| 75 |
|
| 76 |
image_ID = get_random_str(4)
|
|
|
|
| 77 |
input_image_name = rf"input_image_{image_ID}.png"
|
| 78 |
output_image_name = rf"output_image_{image_ID}.png"
|
| 79 |
|