Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -100,6 +100,7 @@ def query(username):
|
|
100 |
if twitter_stream:
|
101 |
prompt_text=f"""You will be given a long twitter stream belonging to a specific profile.
|
102 |
I would like you to come up with a list of nine important concepts or items that user likes or is about them, and can be illustrated.
|
|
|
103 |
Examples:
|
104 |
|
105 |
Twitter stream:
|
@@ -142,7 +143,7 @@ def query(username):
|
|
142 |
Concepts: 1. coffee 2. football 3. Ireland 4. video 5. cat 6. love 7. gaming 8. Dune 9. spider-man
|
143 |
|
144 |
Now, provide the list of 9 concepts for following twitter stream:
|
145 |
-
Twitter stream: {twitter_stream}
|
146 |
Concepts:
|
147 |
|
148 |
"""
|
|
|
100 |
if twitter_stream:
|
101 |
prompt_text=f"""You will be given a long twitter stream belonging to a specific profile.
|
102 |
I would like you to come up with a list of nine important concepts or items that user likes or is about them, and can be illustrated.
|
103 |
+
Ignore any mentions to other people.
|
104 |
Examples:
|
105 |
|
106 |
Twitter stream:
|
|
|
143 |
Concepts: 1. coffee 2. football 3. Ireland 4. video 5. cat 6. love 7. gaming 8. Dune 9. spider-man
|
144 |
|
145 |
Now, provide the list of 9 concepts for following twitter stream:
|
146 |
+
Twitter stream: {re.sub(r'@\w+', '', twitter_stream)}
|
147 |
Concepts:
|
148 |
|
149 |
"""
|