initial commit
Browse files
Experiments/Baseline/baseline.py
DELETED
@@ -1,12 +0,0 @@
|
|
1 |
-
from baseline_utils import *
|
2 |
-
from keys.keys import *
|
3 |
-
|
4 |
-
diary_image_path = "input_images/test_sample.jpeg"
|
5 |
-
writer_image_path = "input_images/writer.jpeg"
|
6 |
-
credentials_path = "keys/service_account_credentials.json"
|
7 |
-
|
8 |
-
# Detect text from the image using the provided credentials
|
9 |
-
detected_text = detect_text_in_image(diary_image_path, credentials_path)
|
10 |
-
diary_summary = summarize_diary_text(detected_text, open_ai_keys)
|
11 |
-
writer_summary = analyze_writer_image(writer_image_path, gemini_keys)
|
12 |
-
generate_comic_book(diary_summary, writer_summary)
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
README.md
CHANGED
@@ -8,35 +8,3 @@ sdk_version: "1.38.0"
|
|
8 |
app_file: app.py
|
9 |
pinned: false
|
10 |
---
|
11 |
-
|
12 |
-
[//]: # (# Diary-AI)
|
13 |
-
|
14 |
-
[//]: # ()
|
15 |
-
[//]: # (Hi Team, we will run all kinds of )
|
16 |
-
|
17 |
-
[//]: # (experimental code in the `Experiments` )
|
18 |
-
|
19 |
-
[//]: # (folder. We can use Jupyter Notebook to )
|
20 |
-
|
21 |
-
[//]: # (run these experiments. Once we finalize )
|
22 |
-
|
23 |
-
[//]: # (a method, we can add it to the `Source` )
|
24 |
-
|
25 |
-
[//]: # (folder, which is intended to be the )
|
26 |
-
|
27 |
-
[//]: # (one we submit for the final.)
|
28 |
-
|
29 |
-
[//]: # ()
|
30 |
-
[//]: # (Timeline)
|
31 |
-
|
32 |
-
[//]: # (- 10/3: PROJECT IDEA)
|
33 |
-
|
34 |
-
[//]: # (- 10/4-10/11: a meeting with Prof. Shi to discuss their project idea, pipeline, and baseline.)
|
35 |
-
|
36 |
-
[//]: # (- 10/17: PROJECT IDEA UPDATE AND PRELIMINARY EXPERIMENTS)
|
37 |
-
|
38 |
-
[//]: # (- 11/7: MIDTERM PROGRESS REPORT)
|
39 |
-
|
40 |
-
[//]: # (- 11/26: PRELIMINARY FINAL RESULTS)
|
41 |
-
|
42 |
-
[//]: # (- 12/10: FINAL REPORT)
|
|
|
8 |
app_file: app.py
|
9 |
pinned: false
|
10 |
---
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Source/Baseline.py
DELETED
File without changes
|
Experiments/Baseline/streamlit_GUI.py β app.py
RENAMED
File without changes
|
Experiments/Baseline/baseline_utils.py β baseline_utils.py
RENAMED
File without changes
|