Spaces:
Running
on
CPU Upgrade
Running
on
CPU Upgrade
try adding gradio placeholder
Browse files
app.py
CHANGED
@@ -56,8 +56,13 @@ def monitor_new_posts():
|
|
56 |
except Exception as e:
|
57 |
print(f"Error during streaming submissions: {e}")
|
58 |
|
|
|
|
|
|
|
59 |
if __name__ == "__main__":
|
60 |
try:
|
|
|
|
|
61 |
print("Starting main function...")
|
62 |
monitor_new_posts()
|
63 |
except Exception as e:
|
|
|
56 |
except Exception as e:
|
57 |
print(f"Error during streaming submissions: {e}")
|
58 |
|
59 |
+
def placeholder_function():
|
60 |
+
return "Reddit monitoring is running!"
|
61 |
+
|
62 |
if __name__ == "__main__":
|
63 |
try:
|
64 |
+
demo = gr.Interface(fn=placeholder_function, inputs=[], outputs="text")
|
65 |
+
demo.launch(share=True)
|
66 |
print("Starting main function...")
|
67 |
monitor_new_posts()
|
68 |
except Exception as e:
|