Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
|
@@ -139,7 +139,7 @@ client_secret = os.getenv('CLIENT_SECRET')
|
|
| 139 |
|
| 140 |
oauth1_user_handler = tweepy.OAuth2UserHandler(client_id=client_id,
|
| 141 |
client_secret=client_secret,
|
| 142 |
-
redirect_uri="https://hf.space/embed/User1342/WatchTower",
|
| 143 |
scope=["block.write"]
|
| 144 |
|
| 145 |
)
|
|
@@ -155,7 +155,7 @@ chat_history = []
|
|
| 155 |
def get_client_from_tokens():
|
| 156 |
oauth1_user_handler = tweepy.OAuth2UserHandler(client_id=client_id,
|
| 157 |
client_secret=client_secret,
|
| 158 |
-
redirect_uri="https://hf.space/embed/User1342/WatchTower",
|
| 159 |
scope=["block.write"])
|
| 160 |
|
| 161 |
for connection in block.server.server_state.connections:
|
|
@@ -212,7 +212,6 @@ username_populated = False
|
|
| 212 |
|
| 213 |
|
| 214 |
def chat(radio_score=None, selected_option=None):
|
| 215 |
-
print("headers {}".format(self.request))
|
| 216 |
client = get_client_from_tokens()
|
| 217 |
history = []
|
| 218 |
|
|
|
|
| 139 |
|
| 140 |
oauth1_user_handler = tweepy.OAuth2UserHandler(client_id=client_id,
|
| 141 |
client_secret=client_secret,
|
| 142 |
+
redirect_uri="https://hf.space/embed/User1342/WatchTower/",
|
| 143 |
scope=["block.write"]
|
| 144 |
|
| 145 |
)
|
|
|
|
| 155 |
def get_client_from_tokens():
|
| 156 |
oauth1_user_handler = tweepy.OAuth2UserHandler(client_id=client_id,
|
| 157 |
client_secret=client_secret,
|
| 158 |
+
redirect_uri="https://hf.space/embed/User1342/WatchTower/",
|
| 159 |
scope=["block.write"])
|
| 160 |
|
| 161 |
for connection in block.server.server_state.connections:
|
|
|
|
| 212 |
|
| 213 |
|
| 214 |
def chat(radio_score=None, selected_option=None):
|
|
|
|
| 215 |
client = get_client_from_tokens()
|
| 216 |
history = []
|
| 217 |
|