Spaces:
Sleeping
Sleeping
Create app.py
Browse files
app.py
ADDED
|
@@ -0,0 +1,17 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
import streamlit as st
|
| 2 |
+
import sentiment_analysis
|
| 3 |
+
import text_summary
|
| 4 |
+
# Streamlit UI
|
| 5 |
+
def main():
|
| 6 |
+
st.title("AI ROBO HUB - Smart AI Tools")
|
| 7 |
+
st.write("We provide end to end AI Apps Development")
|
| 8 |
+
st.sidebar.title("Navigation")
|
| 9 |
+
app_mode = st.sidebar.radio("Select Functionality", ["Sentiment Analysis", "Text Summary"])
|
| 10 |
+
|
| 11 |
+
if app_mode == "Sentiment Analysis":
|
| 12 |
+
sentiment_analysis.run()
|
| 13 |
+
elif app_mode == "Text Summary":
|
| 14 |
+
text_summary.run()
|
| 15 |
+
|
| 16 |
+
if __name__ == "__main__":
|
| 17 |
+
main()
|