Rowan Martnishn commited on
Commit
211eda2
·
verified ·
1 Parent(s): 37b313c

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +9 -5
app.py CHANGED
@@ -55,11 +55,9 @@ reddit = praw.Reddit(
55
  check_for_async=False)
56
 
57
  subreddits = [
58
- "florida",
59
- "ohio",
60
  "libertarian",
61
  "southpark",
62
- "walkaway",
63
  "truechristian",
64
  "conservatives"
65
  ]
@@ -210,7 +208,7 @@ def display_plot():
210
  else:
211
  return "Processing data..."
212
 
213
- # # Initial data processing
214
  # process_data()
215
 
216
  # # Schedule daily refresh
@@ -231,9 +229,15 @@ def display_plot():
231
  # thread.start()
232
 
233
  # # Gradio Interface
234
- # iface = gr.Interface(fn=display_plot, inputs=None, outputs="html")
 
 
 
 
 
235
  # iface.launch()
236
 
 
237
  process_data()
238
 
239
  # Schedule daily refresh
 
55
  check_for_async=False)
56
 
57
  subreddits = [
58
+ "centrist",
 
59
  "libertarian",
60
  "southpark",
 
61
  "truechristian",
62
  "conservatives"
63
  ]
 
208
  else:
209
  return "Processing data..."
210
 
211
+
212
  # process_data()
213
 
214
  # # Schedule daily refresh
 
229
  # thread.start()
230
 
231
  # # Gradio Interface
232
+ # if prediction_plot_base64:
233
+ # html_content = f'<img src="data:image/png;base64,{prediction_plot_base64}" alt="Prediction Plot">'
234
+ # else:
235
+ # html_content = "Processing data..."
236
+
237
+ # iface = gr.Interface(fn=None, inputs=None, outputs=gr.HTML(value=html_content))
238
  # iface.launch()
239
 
240
+ # Initial data processing
241
  process_data()
242
 
243
  # Schedule daily refresh