Update app.py
Browse files
app.py
CHANGED
|
@@ -43,13 +43,10 @@ def main():
|
|
| 43 |
st.title("Generate Diagrams using GPT-4 and MermaidFlow")
|
| 44 |
|
| 45 |
# Display sample prompt
|
| 46 |
-
st.
|
| 47 |
-
|
| 48 |
-
|
| 49 |
-
|
| 50 |
-
|
| 51 |
-
Define the relationships where a **Member** can borrow many **Books**, a **Staff** can manage many **Books**, a **Transaction** is linked to one **Book** and one **Member**, and a **Reservation** is made by a **Member** for a **Book**. Ensure appropriate visibility markers for methods and attributes, and include necessary relationships such as associations, multiplicities, and inheritance. Optionally, consider adding sequence or activity diagrams for processes like book borrowing.
|
| 52 |
-
""")
|
| 53 |
|
| 54 |
# User input for OpenAI API key
|
| 55 |
api_key = st.text_input("Enter your OpenAI API Key:", type="password")
|
|
|
|
| 43 |
st.title("Generate Diagrams using GPT-4 and MermaidFlow")
|
| 44 |
|
| 45 |
# Display sample prompt
|
| 46 |
+
with st.expander("Sample Prompt For Users"):
|
| 47 |
+
st.markdown("""
|
| 48 |
+
Create a UML diagram for a **Library Management System** that includes classes such as **Book** (with attributes like `bookID`, `title`, `author`, `publisher`, `genre`, `availabilityStatus` and methods like `checkAvailability()`, `updateAvailability()`), **Member** (with attributes such as `memberID`, `name`, `email`, `phoneNumber`, `membershipDate` and methods like `borrowBook()`, `returnBook()`, `reserveBook()`), **Staff** (with attributes such as `staffID`, `name`, `role`, `email`, `phoneNumber` and methods like `addBook()`, `removeBook()`, `updateBookInfo()`), **Transaction** (with attributes like `transactionID`, `transactionDate`, `dueDate`, `fineAmount` and methods like `calculateFine()`, `generateReceipt()`), and **Reservation** (with attributes like `reservationID`, `reservationDate`, `expirationDate` and methods like `cancelReservation()`, `checkReservationStatus()`). Define the relationships where a **Member** can borrow many **Books**, a **Staff** can manage many **Books**, a **Transaction** is linked to one **Book** and one **Member**, and a **Reservation** is made by a **Member** for a **Book**. Ensure appropriate visibility markers for methods and attributes, and include necessary relationships such as associations, multiplicities, and inheritance. Optionally, consider adding sequence or activity diagrams for processes like book borrowing.
|
| 49 |
+
""")
|
|
|
|
|
|
|
|
|
|
| 50 |
|
| 51 |
# User input for OpenAI API key
|
| 52 |
api_key = st.text_input("Enter your OpenAI API Key:", type="password")
|