remove examples, fix place data
Browse files
app.py
CHANGED
|
@@ -59,7 +59,7 @@ def scrape(keywords):
|
|
| 59 |
for x in response[0]:
|
| 60 |
tweets.append(str(x))
|
| 61 |
|
| 62 |
-
place_data = response[1]
|
| 63 |
|
| 64 |
df = pd.DataFrame(tweets, columns=['tweet'])
|
| 65 |
|
|
@@ -550,7 +550,7 @@ def main(dataset, model
|
|
| 550 |
place_data = 'test'
|
| 551 |
else:
|
| 552 |
print(dataset)
|
| 553 |
-
df, place_data =
|
| 554 |
print(df)
|
| 555 |
|
| 556 |
if model == 'LDA':
|
|
@@ -581,7 +581,7 @@ iface = gr.Interface(fn=main,
|
|
| 581 |
"BERTopic"],
|
| 582 |
label="Model")
|
| 583 |
],
|
| 584 |
-
examples=examples,
|
| 585 |
outputs=["text",
|
| 586 |
"text",
|
| 587 |
"text"],
|
|
|
|
| 59 |
for x in response[0]:
|
| 60 |
tweets.append(str(x))
|
| 61 |
|
| 62 |
+
place_data = str(response[1])
|
| 63 |
|
| 64 |
df = pd.DataFrame(tweets, columns=['tweet'])
|
| 65 |
|
|
|
|
| 550 |
place_data = 'test'
|
| 551 |
else:
|
| 552 |
print(dataset)
|
| 553 |
+
df, place_data = scrape(keywords)
|
| 554 |
print(df)
|
| 555 |
|
| 556 |
if model == 'LDA':
|
|
|
|
| 581 |
"BERTopic"],
|
| 582 |
label="Model")
|
| 583 |
],
|
| 584 |
+
# examples=examples,
|
| 585 |
outputs=["text",
|
| 586 |
"text",
|
| 587 |
"text"],
|