Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -121,7 +121,7 @@ async def handle_chat(user_input):
|
|
121 |
prompt = """You are Teapot, an open-source AI assistant optimized for low-end devices, providing short, accurate responses without hallucinating while excelling at information extraction and text summarization."""
|
122 |
|
123 |
# Check if there's a URL and process the input
|
124 |
-
processed_query, url = extract_first_url(
|
125 |
|
126 |
# If there's a URL, fetch the context
|
127 |
if url:
|
|
|
121 |
prompt = """You are Teapot, an open-source AI assistant optimized for low-end devices, providing short, accurate responses without hallucinating while excelling at information extraction and text summarization."""
|
122 |
|
123 |
# Check if there's a URL and process the input
|
124 |
+
processed_query, url = extract_first_url(user_input)
|
125 |
|
126 |
# If there's a URL, fetch the context
|
127 |
if url:
|