Spaces:
Running
Running
Update app.py
Browse files
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
|