Spaces:
Runtime error
Runtime error
Update sketch2diagram.py
Browse files- sketch2diagram.py +1 -1
sketch2diagram.py
CHANGED
|
@@ -55,7 +55,7 @@ if generate_command:
|
|
| 55 |
except Exception as e:
|
| 56 |
st.error(f"Inference failed: {e}")
|
| 57 |
st.session_state.clear()
|
| 58 |
-
|
| 59 |
pdf_file_path = compile_tikz_to_pdf(output)
|
| 60 |
if output and pdf_file_path:
|
| 61 |
st.subheader("Generated TikZ Code")
|
|
|
|
| 55 |
except Exception as e:
|
| 56 |
st.error(f"Inference failed: {e}")
|
| 57 |
st.session_state.clear()
|
| 58 |
+
return
|
| 59 |
pdf_file_path = compile_tikz_to_pdf(output)
|
| 60 |
if output and pdf_file_path:
|
| 61 |
st.subheader("Generated TikZ Code")
|