Skip to content

Commit

Permalink
Final Changes
Browse files Browse the repository at this point in the history
  • Loading branch information
ekuka86 committed Jul 11, 2024
1 parent cf1caaf commit 1132fdc
Show file tree
Hide file tree
Showing 14 changed files with 16 additions and 5 deletions.
1 change: 1 addition & 0 deletions .dockerignore
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,4 @@ README.me
screenshot-desktop.py
venv
.DS_Store

1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@

.DS_Store

1 change: 1 addition & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -24,3 +24,4 @@ EXPOSE 8080

# Command to run the supervisor
CMD ["/usr/bin/supervisord"]

3 changes: 2 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -5,4 +5,5 @@ run:
docker-compose up

clean:
docker rm jinaai-demo
docker rm jinaai-demo

1 change: 1 addition & 0 deletions OCRProc.py
Original file line number Diff line number Diff line change
Expand Up @@ -46,3 +46,4 @@ def capture_analyze_and_embed():
while True:
capture_analyze_and_embed()
time.sleep(1)

1 change: 1 addition & 0 deletions app.py
Original file line number Diff line number Diff line change
Expand Up @@ -113,3 +113,4 @@ def add_llm():

if __name__ == '__main__':
app.run(host='0.0.0.0', port=8080, debug=False)

1 change: 1 addition & 0 deletions docker-compose.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -21,3 +21,4 @@ services:
networks:
app-network:
driver: bridge

1 change: 1 addition & 0 deletions query.py
Original file line number Diff line number Diff line change
Expand Up @@ -75,3 +75,4 @@ def main():

if __name__ == "__main__":
main()

1 change: 1 addition & 0 deletions query_data_AI.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,3 +33,4 @@ def send_prompt(query_text: str, model=modelllm):
query_text = input("Enter your question: ")
model = input("Enter the model you want to use (default is 'qwen2'): ") or modelllm
send_prompt(query_text, model)

2 changes: 1 addition & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,4 @@ pillow
einops
timm
python-doctr
Flask
Flask
3 changes: 2 additions & 1 deletion save_chromadb.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,4 +15,5 @@ def add_text_image_data(screenshot_name, text_embedding, image_embedding, extrac

text_collection.add(embeddings=text_embedding, ids=[screenshot_name], documents=extracted_text)
image_collection.add(embeddings=image_embedding, ids=[screenshot_name])
print(f"Processed and saved: {screenshot_name}")
print(f"Processed and saved: {screenshot_name}")

1 change: 1 addition & 0 deletions screenshot-desktop.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,3 +22,4 @@ def capture_screenshots():

if __name__ == "__main__":
capture_screenshots()

2 changes: 1 addition & 1 deletion supervisord.conf
Original file line number Diff line number Diff line change
Expand Up @@ -15,4 +15,4 @@ command=python3 OCRProc.py
autostart=true
autorestart=true
stderr_logfile=/var/log/OCRProc.err.log
stdout_logfile=/var/log/OCRProc.out.log
stdout_logfile=/var/log/OCRProc.out.log
2 changes: 1 addition & 1 deletion templates/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -128,4 +128,4 @@ <h1>ADD LLM</h1>
<button type="submit">Add LLM</button>
</form>
</body>
</html>
</html>

0 comments on commit 1132fdc

Please sign in to comment.