Spaces:
Runtime error
Runtime error
Create main.py
Browse files
main.py
ADDED
|
@@ -0,0 +1,8 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
from src.main import app # or whatever your app is called
|
| 2 |
+
|
| 3 |
+
# If it's a Gradio or Streamlit app, this ensures it runs properly
|
| 4 |
+
if __name__ == "__main__":
|
| 5 |
+
app.launch() # For Gradio
|
| 6 |
+
# or
|
| 7 |
+
# import streamlit as st
|
| 8 |
+
# app() # If app is a Streamlit function
|