Upload 2 files
Browse files- Dockerfile +0 -2
- index.py +10 -3
Dockerfile
CHANGED
@@ -9,8 +9,6 @@ RUN pip install --no-cache-dir -r requirements.txt
|
|
9 |
|
10 |
# Copy application files
|
11 |
COPY index.py .
|
12 |
-
COPY tab1.txt .
|
13 |
-
COPY tab2.txt .
|
14 |
|
15 |
# Expose Streamlit port
|
16 |
EXPOSE 8501
|
|
|
9 |
|
10 |
# Copy application files
|
11 |
COPY index.py .
|
|
|
|
|
12 |
|
13 |
# Expose Streamlit port
|
14 |
EXPOSE 8501
|
index.py
CHANGED
@@ -3,13 +3,11 @@ import requests
|
|
3 |
import json
|
4 |
import time
|
5 |
import random
|
6 |
-
from dotenv import load_dotenv
|
7 |
import os
|
8 |
|
9 |
|
10 |
|
11 |
-
|
12 |
-
API_URL = os.getenv("API_URL", "http://localhost:8000")
|
13 |
|
14 |
TRANSITION_MESSAGES = [
|
15 |
"Now we are moving onto question {number}!",
|
@@ -119,7 +117,16 @@ if "session_state" not in st.session_state:
|
|
119 |
if st.session_state.session_id is None:
|
120 |
start_registration()
|
121 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
122 |
st.title("AI-Powered Registration System")
|
|
|
123 |
|
124 |
if st.session_state.summary:
|
125 |
st.success("Registration Complete!")
|
|
|
3 |
import json
|
4 |
import time
|
5 |
import random
|
|
|
6 |
import os
|
7 |
|
8 |
|
9 |
|
10 |
+
API_URL = os.getenv("API_URL")
|
|
|
11 |
|
12 |
TRANSITION_MESSAGES = [
|
13 |
"Now we are moving onto question {number}!",
|
|
|
117 |
if st.session_state.session_id is None:
|
118 |
start_registration()
|
119 |
|
120 |
+
# Read content from text files
|
121 |
+
def read_content_from_file(file_path):
|
122 |
+
try:
|
123 |
+
with open(file_path, 'r') as file:
|
124 |
+
return file.read()
|
125 |
+
except FileNotFoundError:
|
126 |
+
return f"Error: {file_path} not found."
|
127 |
+
|
128 |
st.title("AI-Powered Registration System")
|
129 |
+
st.markdown("**Developed by [email protected]**")
|
130 |
|
131 |
if st.session_state.summary:
|
132 |
st.success("Registration Complete!")
|