-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* GraphGPT input field replaced with text area. Better JSON parsing added * Additional UI data output * Dependencies updated * Sample images added. * Generator Radio toggles fix
- Loading branch information
Showing
16 changed files
with
489 additions
and
1,320 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+68 KB
graph_data_generator_streamlit/images/exhaustive_random_repeating__model.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+316 KB
graph_data_generator_streamlit/images/exhaustive_random_repeating__result.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
import streamlit as st | ||
import os | ||
import logging | ||
from PIL import Image | ||
|
||
directory = 'graph_data_generator_streamlit/images/' | ||
|
||
|
||
def samples_list(): | ||
if len(st.session_state["SAMPLE_IMAGES"]) == 0: | ||
filenames = os.listdir(directory) | ||
filenames.sort() | ||
for filename in filenames: | ||
try: | ||
image = Image.open(os.path.join(directory, filename)) | ||
st.image(image, caption=f'{filename}') | ||
st.session_state["SAMPLE_IMAGES"].append((image, filename)) | ||
except Exception as e: | ||
logging.error(e) | ||
else: | ||
for image_filename in st.session_state["SAMPLE_IMAGES"]: | ||
st.image(image_filename[0], caption=image_filename[1]) |
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
[tool.poetry] | ||
name = "mock-graph-data-generator-streamlit" | ||
version = "0.7.3" | ||
version = "0.7.5" | ||
description = "" | ||
authors = ["Jason Koo <[email protected]>"] | ||
readme = "README.md" | ||
|
@@ -9,17 +9,19 @@ packages = [{include = "graph_data_generator_streamlit"}] | |
[tool.poetry.dependencies] | ||
python = "^3.11" | ||
streamlit = ">=1.27,<2.0" | ||
neo4j-uploader = {path = "/Users/jasonkoo/neo4j/repos/neo4j-uploader", develop = true} | ||
pyclip = ">=0.7,<1.0" | ||
graph-data-generator = ">=0.3.2" | ||
neo4j = "^5.14.1" | ||
streamlit-agraph = "^0.0.45" | ||
openai = "^0.28.1" | ||
opencv-python = "^4.8.1.78" | ||
pillow = "^10.1.0" | ||
graph-data-generator = "0.4.0" | ||
neo4j-uploader = "^0.4.1" | ||
|
||
|
||
[tool.poetry.group.dev.dependencies] | ||
pytest = "^7.4.0" | ||
|
||
[build-system] | ||
requires = ["poetry-core"] | ||
build-backend = "poetry.core.masonry.api" | ||
build-backend = "poetry.core.masonry.api" |