Spaces:
Running
on
CPU Upgrade
Running
on
CPU Upgrade
revert
Browse files
app.py
CHANGED
@@ -1,8 +1,5 @@
|
|
1 |
import os
|
2 |
import praw
|
3 |
-
import gradio as gr
|
4 |
-
import threading
|
5 |
-
|
6 |
|
7 |
# working
|
8 |
|
@@ -59,12 +56,6 @@ def monitor_new_posts():
|
|
59 |
except Exception as e:
|
60 |
print(f"Error during streaming submissions: {e}")
|
61 |
|
62 |
-
def greet(name):
|
63 |
-
return "Hello " + name + "!"
|
64 |
-
demo = gr.Interface(fn=greet, inputs="text", outputs="text")
|
65 |
-
demo.launch()
|
66 |
-
|
67 |
-
|
68 |
if __name__ == "__main__":
|
69 |
try:
|
70 |
print("Starting main function...")
|
|
|
1 |
import os
|
2 |
import praw
|
|
|
|
|
|
|
3 |
|
4 |
# working
|
5 |
|
|
|
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...")
|