alexandrosthegreat commited on
Commit
88da15f
·
1 Parent(s): 7ecf3d7

First comm

Browse files
.idea/.gitignore ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ # Default ignored files
2
+ /shelf/
3
+ /workspace.xml
.idea/ShopGPT_BLIP_API.iml ADDED
@@ -0,0 +1,14 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <module type="PYTHON_MODULE" version="4">
3
+ <component name="NewModuleRootManager">
4
+ <content url="file://$MODULE_DIR$">
5
+ <excludeFolder url="file://$MODULE_DIR$/venv" />
6
+ </content>
7
+ <orderEntry type="jdk" jdkName="Python 3.11 (ShopGPT_BLIP_API)" jdkType="Python SDK" />
8
+ <orderEntry type="sourceFolder" forTests="false" />
9
+ </component>
10
+ <component name="PackageRequirementsSettings">
11
+ <option name="removeUnused" value="true" />
12
+ <option name="modifyBaseFiles" value="true" />
13
+ </component>
14
+ </module>
.idea/inspectionProfiles/Project_Default.xml ADDED
@@ -0,0 +1,22 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <component name="InspectionProjectProfileManager">
2
+ <profile version="1.0">
3
+ <option name="myName" value="Project Default" />
4
+ <inspection_tool class="PyPackageRequirementsInspection" enabled="true" level="WARNING" enabled_by_default="true">
5
+ <option name="ignoredPackages">
6
+ <value>
7
+ <list size="2">
8
+ <item index="0" class="java.lang.String" itemvalue="requests" />
9
+ <item index="1" class="java.lang.String" itemvalue="Flask" />
10
+ </list>
11
+ </value>
12
+ </option>
13
+ </inspection_tool>
14
+ <inspection_tool class="PyPep8NamingInspection" enabled="true" level="WEAK WARNING" enabled_by_default="true">
15
+ <option name="ignoredErrors">
16
+ <list>
17
+ <option value="N806" />
18
+ </list>
19
+ </option>
20
+ </inspection_tool>
21
+ </profile>
22
+ </component>
.idea/inspectionProfiles/profiles_settings.xml ADDED
@@ -0,0 +1,6 @@
 
 
 
 
 
 
 
1
+ <component name="InspectionProjectProfileManager">
2
+ <settings>
3
+ <option name="USE_PROJECT_PROFILE" value="false" />
4
+ <version value="1.0" />
5
+ </settings>
6
+ </component>
.idea/misc.xml ADDED
@@ -0,0 +1,4 @@
 
 
 
 
 
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <project version="4">
3
+ <component name="ProjectRootManager" version="2" project-jdk-name="Python 3.11 (ShopGPT_BLIP_API)" project-jdk-type="Python SDK" />
4
+ </project>
.idea/modules.xml ADDED
@@ -0,0 +1,8 @@
 
 
 
 
 
 
 
 
 
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <project version="4">
3
+ <component name="ProjectModuleManager">
4
+ <modules>
5
+ <module fileurl="file://$PROJECT_DIR$/.idea/ShopGPT_BLIP_API.iml" filepath="$PROJECT_DIR$/.idea/ShopGPT_BLIP_API.iml" />
6
+ </modules>
7
+ </component>
8
+ </project>
.idea/vcs.xml ADDED
@@ -0,0 +1,6 @@
 
 
 
 
 
 
 
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <project version="4">
3
+ <component name="VcsDirectoryMappings">
4
+ <mapping directory="" vcs="Git" />
5
+ </component>
6
+ </project>
app.py ADDED
@@ -0,0 +1,10 @@
 
 
 
 
 
 
 
 
 
 
 
1
+ from PIL import Image
2
+ import requests
3
+ import gradio as gr
4
+
5
+ from transformers import BlipProcessor, BlipForConditionalGeneration
6
+ def greet(name):
7
+ return "Hello " + name + "!!"
8
+
9
+ iface = gr.Interface(fn=greet, inputs="text", outputs="text")
10
+ iface.launch()
requirements.txt ADDED
@@ -0,0 +1,71 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ aiofiles==23.2.1
2
+ aiohttp==3.8.5
3
+ aiosignal==1.3.1
4
+ altair==5.0.1
5
+ annotated-types==0.5.0
6
+ anyio==3.7.1
7
+ async-timeout==4.0.3
8
+ attrs==23.1.0
9
+ certifi==2023.7.22
10
+ charset-normalizer==3.2.0
11
+ click==8.1.7
12
+ contourpy==1.1.0
13
+ cycler==0.11.0
14
+ fastapi==0.101.1
15
+ ffmpy==0.3.1
16
+ filelock==3.12.2
17
+ fonttools==4.42.0
18
+ frozenlist==1.4.0
19
+ fsspec==2023.6.0
20
+ gradio==3.40.1
21
+ gradio_client==0.4.0
22
+ h11==0.14.0
23
+ httpcore==0.17.3
24
+ httpx==0.24.1
25
+ huggingface-hub==0.16.4
26
+ idna==3.4
27
+ importlib-resources==6.0.1
28
+ Jinja2==3.1.2
29
+ jsonschema==4.19.0
30
+ jsonschema-specifications==2023.7.1
31
+ kiwisolver==1.4.4
32
+ linkify-it-py==2.0.2
33
+ markdown-it-py==2.2.0
34
+ MarkupSafe==2.1.3
35
+ matplotlib==3.7.2
36
+ mdit-py-plugins==0.3.3
37
+ mdurl==0.1.2
38
+ multidict==6.0.4
39
+ numpy==1.25.2
40
+ orjson==3.9.5
41
+ packaging==23.1
42
+ pandas==2.0.3
43
+ Pillow==10.0.0
44
+ pydantic==2.2.1
45
+ pydantic_core==2.6.1
46
+ pydub==0.25.1
47
+ pyparsing==3.0.9
48
+ python-dateutil==2.8.2
49
+ python-multipart==0.0.6
50
+ pytz==2023.3
51
+ PyYAML==6.0.1
52
+ referencing==0.30.2
53
+ regex==2023.8.8
54
+ requests==2.31.0
55
+ rpds-py==0.9.2
56
+ safetensors==0.3.2
57
+ semantic-version==2.10.0
58
+ six==1.16.0
59
+ sniffio==1.3.0
60
+ starlette==0.27.0
61
+ tokenizers==0.13.3
62
+ toolz==0.12.0
63
+ tqdm==4.66.1
64
+ transformers==4.31.0
65
+ typing_extensions==4.7.1
66
+ tzdata==2023.3
67
+ uc-micro-py==1.0.2
68
+ urllib3==2.0.4
69
+ uvicorn==0.23.2
70
+ websockets==11.0.3
71
+ yarl==1.9.2