Spaces:
Sleeping
Sleeping
added instructions plus twitter link
Browse files
app.py
CHANGED
@@ -79,10 +79,18 @@ def launch_interface():
|
|
79 |
|
80 |
# Create Gradio Blocks for more flexible interface
|
81 |
with gr.Blocks() as demo:
|
82 |
-
# Title and
|
83 |
gr.Markdown("# Reddit Business Problem Analyzer")
|
84 |
-
gr.Markdown("Discover potential business opportunities from Reddit discussions")
|
85 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
86 |
# Subreddit selection
|
87 |
subreddit_dropdown = gr.Dropdown(
|
88 |
choices=subreddit_list,
|
@@ -95,11 +103,6 @@ def launch_interface():
|
|
95 |
with gr.Column():
|
96 |
# Overall Analysis Section
|
97 |
gr.Markdown("## Overall Analysis")
|
98 |
-
# overall_analysis = gr.Textbox(
|
99 |
-
# label="Aggregated Business Insights",
|
100 |
-
# interactive=False,
|
101 |
-
# lines=5
|
102 |
-
# )
|
103 |
|
104 |
# Results Table
|
105 |
results_table = gr.Dataframe(
|
@@ -184,4 +187,4 @@ def launch_interface():
|
|
184 |
# Launch the interface
|
185 |
if __name__ == "__main__":
|
186 |
interface = launch_interface()
|
187 |
-
interface.launch(share=True)
|
|
|
79 |
|
80 |
# Create Gradio Blocks for more flexible interface
|
81 |
with gr.Blocks() as demo:
|
82 |
+
# Title and author
|
83 |
gr.Markdown("# Reddit Business Problem Analyzer")
|
84 |
+
gr.Markdown("**Discover potential business opportunities from Reddit discussions**")
|
85 |
+
gr.Markdown("### Created by [@matthewjgunton](https://x.com/matthewjgunton)", elem_id="twitter-handle")
|
86 |
+
|
87 |
+
with gr.Accordion("Instructions", open=False):
|
88 |
+
gr.Markdown("""
|
89 |
+
1. **Select a Subreddit:** Use the dropdown to choose a subreddit to analyze.
|
90 |
+
2. **View Results:** The analysis table shows posts, comments, and AI-generated insights.
|
91 |
+
3. **Detailed View:** Enter a row index to view detailed analysis and links for a specific post.
|
92 |
+
""", visible=True)
|
93 |
+
|
94 |
# Subreddit selection
|
95 |
subreddit_dropdown = gr.Dropdown(
|
96 |
choices=subreddit_list,
|
|
|
103 |
with gr.Column():
|
104 |
# Overall Analysis Section
|
105 |
gr.Markdown("## Overall Analysis")
|
|
|
|
|
|
|
|
|
|
|
106 |
|
107 |
# Results Table
|
108 |
results_table = gr.Dataframe(
|
|
|
187 |
# Launch the interface
|
188 |
if __name__ == "__main__":
|
189 |
interface = launch_interface()
|
190 |
+
interface.launch(share=True)
|