fix
Browse files- .idea/workspace.xml +23 -22
- Kaggle_API.py +2 -2
- app.py +2 -1
.idea/workspace.xml
CHANGED
|
@@ -6,11 +6,8 @@
|
|
| 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$/
|
| 10 |
<change beforePath="$PROJECT_DIR$/app.py" beforeDir="false" afterPath="$PROJECT_DIR$/app.py" afterDir="false" />
|
| 11 |
-
<change beforePath="$PROJECT_DIR$/input.png" beforeDir="false" />
|
| 12 |
-
<change beforePath="$PROJECT_DIR$/output.png" beforeDir="false" />
|
| 13 |
-
<change beforePath="$PROJECT_DIR$/service_account.json" beforeDir="false" />
|
| 14 |
</list>
|
| 15 |
<option name="SHOW_DIALOG" value="false" />
|
| 16 |
<option name="HIGHLIGHT_CONFLICTS" value="true" />
|
|
@@ -32,24 +29,25 @@
|
|
| 32 |
<option name="hideEmptyMiddlePackages" value="true" />
|
| 33 |
<option name="showLibraryContents" value="true" />
|
| 34 |
</component>
|
| 35 |
-
<component name="PropertiesComponent">{
|
| 36 |
-
|
| 37 |
-
|
| 38 |
-
|
| 39 |
-
|
| 40 |
-
|
| 41 |
-
|
| 42 |
-
|
| 43 |
-
|
| 44 |
-
|
| 45 |
-
|
| 46 |
-
|
| 47 |
-
|
| 48 |
-
|
| 49 |
-
|
| 50 |
-
|
|
|
|
| 51 |
}
|
| 52 |
-
}</component>
|
| 53 |
<component name="SharedIndexes">
|
| 54 |
<attachedChunks>
|
| 55 |
<set>
|
|
@@ -67,11 +65,14 @@
|
|
| 67 |
<updated>1713919907805</updated>
|
| 68 |
<workItem from="1713919910236" duration="1099000" />
|
| 69 |
<workItem from="1713921043559" duration="495000" />
|
| 70 |
-
<workItem from="1714055653743" duration="
|
| 71 |
</task>
|
| 72 |
<servers />
|
| 73 |
</component>
|
| 74 |
<component name="TypeScriptGeneratedFilesManager">
|
| 75 |
<option name="version" value="3" />
|
| 76 |
</component>
|
|
|
|
|
|
|
|
|
|
| 77 |
</project>
|
|
|
|
| 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$/Kaggle_API.py" beforeDir="false" afterPath="$PROJECT_DIR$/Kaggle_API.py" afterDir="false" />
|
| 10 |
<change beforePath="$PROJECT_DIR$/app.py" beforeDir="false" afterPath="$PROJECT_DIR$/app.py" afterDir="false" />
|
|
|
|
|
|
|
|
|
|
| 11 |
</list>
|
| 12 |
<option name="SHOW_DIALOG" value="false" />
|
| 13 |
<option name="HIGHLIGHT_CONFLICTS" value="true" />
|
|
|
|
| 29 |
<option name="hideEmptyMiddlePackages" value="true" />
|
| 30 |
<option name="showLibraryContents" value="true" />
|
| 31 |
</component>
|
| 32 |
+
<component name="PropertiesComponent"><![CDATA[{
|
| 33 |
+
"keyToString": {
|
| 34 |
+
"Python.app.executor": "Run",
|
| 35 |
+
"RunOnceActivity.OpenProjectViewOnStart": "true",
|
| 36 |
+
"RunOnceActivity.ShowReadmeOnStart": "true",
|
| 37 |
+
"git-widget-placeholder": "main",
|
| 38 |
+
"kotlin-language-version-configured": "true",
|
| 39 |
+
"last_opened_file_path": "C:/Users/Amir/anaconda3/envs/env",
|
| 40 |
+
"node.js.detected.package.eslint": "true",
|
| 41 |
+
"node.js.detected.package.tslint": "true",
|
| 42 |
+
"node.js.selected.package.eslint": "(autodetect)",
|
| 43 |
+
"node.js.selected.package.tslint": "(autodetect)",
|
| 44 |
+
"nodejs_package_manager_path": "npm",
|
| 45 |
+
"project.structure.last.edited": "Modules",
|
| 46 |
+
"project.structure.proportion": "0.0",
|
| 47 |
+
"project.structure.side.proportion": "0.0",
|
| 48 |
+
"vue.rearranger.settings.migration": "true"
|
| 49 |
}
|
| 50 |
+
}]]></component>
|
| 51 |
<component name="SharedIndexes">
|
| 52 |
<attachedChunks>
|
| 53 |
<set>
|
|
|
|
| 65 |
<updated>1713919907805</updated>
|
| 66 |
<workItem from="1713919910236" duration="1099000" />
|
| 67 |
<workItem from="1713921043559" duration="495000" />
|
| 68 |
+
<workItem from="1714055653743" duration="394000" />
|
| 69 |
</task>
|
| 70 |
<servers />
|
| 71 |
</component>
|
| 72 |
<component name="TypeScriptGeneratedFilesManager">
|
| 73 |
<option name="version" value="3" />
|
| 74 |
</component>
|
| 75 |
+
<component name="com.intellij.coverage.CoverageDataManagerImpl">
|
| 76 |
+
<SUITE FILE_PATH="coverage/Text_Driven_Image_to_Image_Generation$app.coverage" NAME="app Coverage Results" MODIFIED="1714055835621" SOURCE_PROVIDER="com.intellij.coverage.DefaultCoverageFileProvider" RUNNER="coverage.py" COVERAGE_BY_TEST_ENABLED="true" COVERAGE_TRACING_ENABLED="false" WORKING_DIRECTORY="$PROJECT_DIR$" />
|
| 77 |
+
</component>
|
| 78 |
</project>
|
Kaggle_API.py
CHANGED
|
@@ -1,10 +1,10 @@
|
|
| 1 |
import time
|
| 2 |
|
| 3 |
from Helper_functions import *
|
| 4 |
-
|
| 5 |
|
| 6 |
class API_Connection:
|
| 7 |
-
def __init__(self, gd_connection, kaggle_username: str = "", kaggle_key: str = ""):
|
| 8 |
os.environ["KAGGLE_USERNAME"] = kaggle_username
|
| 9 |
os.environ["KAGGLE_KEY"] = kaggle_key
|
| 10 |
|
|
|
|
| 1 |
import time
|
| 2 |
|
| 3 |
from Helper_functions import *
|
| 4 |
+
from GoogleDrive_API import GoogleDrive_API
|
| 5 |
|
| 6 |
class API_Connection:
|
| 7 |
+
def __init__(self, gd_connection: GoogleDrive_API, kaggle_username: str = "", kaggle_key: str = ""):
|
| 8 |
os.environ["KAGGLE_USERNAME"] = kaggle_username
|
| 9 |
os.environ["KAGGLE_KEY"] = kaggle_key
|
| 10 |
|
app.py
CHANGED
|
@@ -52,7 +52,8 @@ def generate_button_clicked(*args):
|
|
| 52 |
if len(edit_instruction) == 0:
|
| 53 |
raise gr.Error("Missing Input: edit_instruction")
|
| 54 |
|
| 55 |
-
GoogleDrive_connection =
|
|
|
|
| 56 |
api_connection = API_Connection(GoogleDrive_connection, kaggle_username, kaggle_key)
|
| 57 |
|
| 58 |
create_folder("local_dataset")
|
|
|
|
| 52 |
if len(edit_instruction) == 0:
|
| 53 |
raise gr.Error("Missing Input: edit_instruction")
|
| 54 |
|
| 55 |
+
GoogleDrive_connection = ""
|
| 56 |
+
# GoogleDrive_connection = GoogleDrive_API("service_account.json")
|
| 57 |
api_connection = API_Connection(GoogleDrive_connection, kaggle_username, kaggle_key)
|
| 58 |
|
| 59 |
create_folder("local_dataset")
|