Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
|
@@ -1,3 +1,6 @@
|
|
|
|
|
|
|
|
|
|
|
| 1 |
import os
|
| 2 |
import json
|
| 3 |
import re
|
|
@@ -13,8 +16,6 @@ from dataclasses import dataclass
|
|
| 13 |
from itertools import combinations, product
|
| 14 |
from typing import Iterator
|
| 15 |
|
| 16 |
-
import streamlit as st
|
| 17 |
-
import pandas as pd
|
| 18 |
import PyPDF2 # For handling PDF files
|
| 19 |
from collections import Counter
|
| 20 |
|
|
@@ -34,6 +35,7 @@ from sklearn.metrics.pairwise import cosine_similarity
|
|
| 34 |
import httpx
|
| 35 |
from httpx import RemoteProtocolError
|
| 36 |
|
|
|
|
| 37 |
# ▸ If `backoff` is not installed, provide a quick fallback
|
| 38 |
try:
|
| 39 |
import backoff
|
|
@@ -1969,7 +1971,10 @@ def idea_generator_app():
|
|
| 1969 |
if "language" not in st.session_state:
|
| 1970 |
st.session_state["language"] = "English" # default
|
| 1971 |
|
| 1972 |
-
st.set_page_config(
|
|
|
|
|
|
|
|
|
|
| 1973 |
|
| 1974 |
st.title("Ilúvatar: Creative Design & Invention AI")
|
| 1975 |
st.caption("This system autonomously collects and analyzes big data to propose complex design/invention ideas.")
|
|
|
|
| 1 |
+
import streamlit as st
|
| 2 |
+
import pandas as pd
|
| 3 |
+
|
| 4 |
import os
|
| 5 |
import json
|
| 6 |
import re
|
|
|
|
| 16 |
from itertools import combinations, product
|
| 17 |
from typing import Iterator
|
| 18 |
|
|
|
|
|
|
|
| 19 |
import PyPDF2 # For handling PDF files
|
| 20 |
from collections import Counter
|
| 21 |
|
|
|
|
| 35 |
import httpx
|
| 36 |
from httpx import RemoteProtocolError
|
| 37 |
|
| 38 |
+
|
| 39 |
# ▸ If `backoff` is not installed, provide a quick fallback
|
| 40 |
try:
|
| 41 |
import backoff
|
|
|
|
| 1971 |
if "language" not in st.session_state:
|
| 1972 |
st.session_state["language"] = "English" # default
|
| 1973 |
|
| 1974 |
+
st.set_page_config(
|
| 1975 |
+
page_title="Ilúvatar: Creative Design & Invention AI",
|
| 1976 |
+
layout="wide"
|
| 1977 |
+
)
|
| 1978 |
|
| 1979 |
st.title("Ilúvatar: Creative Design & Invention AI")
|
| 1980 |
st.caption("This system autonomously collects and analyzes big data to propose complex design/invention ideas.")
|