yasserrmd commited on
Commit
819503b
·
verified ·
1 Parent(s): e779fad

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -35,7 +35,7 @@ user_input = st.text_area("Describe your architecture:",
35
  if st.button("Generate Diagram"):
36
  if user_input:
37
  # Send the user's input to the API
38
- payload = {"question": user_input}
39
  output = query(payload)
40
 
41
  # Check and display the Python code from the API response
 
35
  if st.button("Generate Diagram"):
36
  if user_input:
37
  # Send the user's input to the API
38
+ payload = {"question":"make sure to import from diagrams import Diagram" + user_input + " architecture"}
39
  output = query(payload)
40
 
41
  # Check and display the Python code from the API response