Spaces:
Sleeping
Sleeping
Create app.py
Browse files
app.py
ADDED
@@ -0,0 +1,33 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
import streamlit as st
|
2 |
+
from industry_research import get_company_info
|
3 |
+
from use_case_generation import generate_use_cases
|
4 |
+
from dataset_collection import collect_datasets
|
5 |
+
from proposal_compilation import compile_proposal
|
6 |
+
|
7 |
+
st.title("AI and GenAI Use Case Generator")
|
8 |
+
|
9 |
+
# Step 1: Get company URL
|
10 |
+
company_url = st.text_input("Enter Company Website URL", "https://example.com")
|
11 |
+
|
12 |
+
if st.button("Generate Proposal"):
|
13 |
+
# Step 2: Get company info
|
14 |
+
st.write("Fetching company information...")
|
15 |
+
company_info = get_company_info(company_url)
|
16 |
+
st.write("Company Information:", company_info)
|
17 |
+
|
18 |
+
# Step 3: Generate use cases based on company info
|
19 |
+
st.write("Generating use cases...")
|
20 |
+
use_cases = generate_use_cases(company_info)
|
21 |
+
st.write("Use Cases:", use_cases["use_cases"])
|
22 |
+
|
23 |
+
# Step 4: Collect dataset links
|
24 |
+
st.write("Collecting relevant datasets...")
|
25 |
+
resource_file = collect_datasets()
|
26 |
+
st.write("Datasets saved in:", resource_file)
|
27 |
+
|
28 |
+
# Step 5: Compile final proposal
|
29 |
+
proposal_file = compile_proposal(use_cases, resource_file)
|
30 |
+
st.write("Final proposal saved as:", proposal_file)
|
31 |
+
|
32 |
+
with open(proposal_file, "r") as f:
|
33 |
+
st.download_button("Download Proposal", f, file_name=proposal_file)
|