Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -37,6 +37,7 @@ if st.button("Generate Diagram"):
|
|
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
|
42 |
if "text" in output:
|
|
|
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 |
+
print(output)
|
41 |
|
42 |
# Check and display the Python code from the API response
|
43 |
if "text" in output:
|