Merge pull request 'pull changes for python' (#6) from React-Group/ai-virtual-assistant:main into main
Reviewed-on: https://interstellardevelopment.org/code/code/sageTheDm/ai-virtual-assistant/pulls/6
This commit is contained in:
		
						commit
						06ab25ac43
					
				
					 9 changed files with 14 additions and 39 deletions
				
			
		
							
								
								
									
										2
									
								
								.gitignore
									
										
									
									
										vendored
									
									
								
							
							
						
						
									
										2
									
								
								.gitignore
									
										
									
									
										vendored
									
									
								
							|  | @ -1,2 +1,4 @@ | ||||||
| venv/ | venv/ | ||||||
| __pycache__ | __pycache__ | ||||||
|  | .idea/ | ||||||
|  | .vscode/ | ||||||
|  |  | ||||||
							
								
								
									
										3
									
								
								py/.idea/.gitignore
									
										
									
										generated
									
									
										vendored
									
									
								
							
							
						
						
									
										3
									
								
								py/.idea/.gitignore
									
										
									
										generated
									
									
										vendored
									
									
								
							|  | @ -1,3 +0,0 @@ | ||||||
| # Default ignored files |  | ||||||
| /shelf/ |  | ||||||
| /workspace.xml |  | ||||||
|  | @ -1,6 +0,0 @@ | ||||||
| <component name="InspectionProjectProfileManager"> |  | ||||||
|   <settings> |  | ||||||
|     <option name="USE_PROJECT_PROFILE" value="false" /> |  | ||||||
|     <version value="1.0" /> |  | ||||||
|   </settings> |  | ||||||
| </component> |  | ||||||
							
								
								
									
										7
									
								
								py/.idea/misc.xml
									
										
									
										generated
									
									
									
								
							
							
						
						
									
										7
									
								
								py/.idea/misc.xml
									
										
									
										generated
									
									
									
								
							|  | @ -1,7 +0,0 @@ | ||||||
| <?xml version="1.0" encoding="UTF-8"?> |  | ||||||
| <project version="4"> |  | ||||||
|   <component name="Black"> |  | ||||||
|     <option name="sdkName" value="Python 3.12" /> |  | ||||||
|   </component> |  | ||||||
|   <component name="ProjectRootManager" version="2" project-jdk-name="Python 3.12 (py)" project-jdk-type="Python SDK" /> |  | ||||||
| </project> |  | ||||||
							
								
								
									
										8
									
								
								py/.idea/modules.xml
									
										
									
										generated
									
									
									
								
							
							
						
						
									
										8
									
								
								py/.idea/modules.xml
									
										
									
										generated
									
									
									
								
							|  | @ -1,8 +0,0 @@ | ||||||
| <?xml version="1.0" encoding="UTF-8"?> |  | ||||||
| <project version="4"> |  | ||||||
|   <component name="ProjectModuleManager"> |  | ||||||
|     <modules> |  | ||||||
|       <module fileurl="file://$PROJECT_DIR$/.idea/py.iml" filepath="$PROJECT_DIR$/.idea/py.iml" /> |  | ||||||
|     </modules> |  | ||||||
|   </component> |  | ||||||
| </project> |  | ||||||
							
								
								
									
										8
									
								
								py/.idea/py.iml
									
										
									
										generated
									
									
									
								
							
							
						
						
									
										8
									
								
								py/.idea/py.iml
									
										
									
										generated
									
									
									
								
							|  | @ -1,8 +0,0 @@ | ||||||
| <?xml version="1.0" encoding="UTF-8"?> |  | ||||||
| <module type="PYTHON_MODULE" version="4"> |  | ||||||
|   <component name="NewModuleRootManager"> |  | ||||||
|     <content url="file://$MODULE_DIR$" /> |  | ||||||
|     <orderEntry type="jdk" jdkName="Python 3.12 (py)" jdkType="Python SDK" /> |  | ||||||
|     <orderEntry type="sourceFolder" forTests="false" /> |  | ||||||
|   </component> |  | ||||||
| </module> |  | ||||||
							
								
								
									
										6
									
								
								py/.idea/vcs.xml
									
										
									
										generated
									
									
									
								
							
							
						
						
									
										6
									
								
								py/.idea/vcs.xml
									
										
									
										generated
									
									
									
								
							|  | @ -1,6 +0,0 @@ | ||||||
| <?xml version="1.0" encoding="UTF-8"?> |  | ||||||
| <project version="4"> |  | ||||||
|   <component name="VcsDirectoryMappings"> |  | ||||||
|     <mapping directory="$PROJECT_DIR$/.." vcs="Git" /> |  | ||||||
|   </component> |  | ||||||
| </project> |  | ||||||
							
								
								
									
										2
									
								
								py/venv.sh
									
										
									
									
									
										
										
										Normal file → Executable file
									
								
							
							
						
						
									
										2
									
								
								py/venv.sh
									
										
									
									
									
										
										
										Normal file → Executable file
									
								
							|  | @ -1,7 +1,7 @@ | ||||||
| #!/bin/bash | #!/bin/bash | ||||||
| 
 | 
 | ||||||
| rm -rf venv/ |  | ||||||
| virtualenv venv | virtualenv venv | ||||||
| source venv/bin/activate | source venv/bin/activate | ||||||
| pip install transformers | pip install transformers | ||||||
| pip install torch | pip install torch | ||||||
|  | pip install flask | ||||||
|  |  | ||||||
							
								
								
									
										11
									
								
								py/web_flask.py
									
										
									
									
									
										Normal file
									
								
							
							
						
						
									
										11
									
								
								py/web_flask.py
									
										
									
									
									
										Normal file
									
								
							|  | @ -0,0 +1,11 @@ | ||||||
|  | from flask import Flask | ||||||
|  | 
 | ||||||
|  | app = Flask(__name__) | ||||||
|  | 
 | ||||||
|  | 
 | ||||||
|  | @app.route('/') | ||||||
|  | def index(): | ||||||
|  |     return app.send_static_file('index.html') | ||||||
|  | 
 | ||||||
|  | if __name__ == '__main__': | ||||||
|  |     app.run() | ||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue