Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -52,7 +52,7 @@ def respond(message, history, system_message, max_tokens, temperature, top_p):
|
|
| 52 |
except Exception as e:
|
| 53 |
return f"Generation error: {e}"
|
| 54 |
|
| 55 |
-
def
|
| 56 |
"""
|
| 57 |
Extracts and returns the content that follows the word 'output' in the given text.
|
| 58 |
If 'output' is not found, returns an empty string.
|
|
|
|
| 52 |
except Exception as e:
|
| 53 |
return f"Generation error: {e}"
|
| 54 |
|
| 55 |
+
def extract_user_content(text):
|
| 56 |
"""
|
| 57 |
Extracts and returns the content that follows the word 'output' in the given text.
|
| 58 |
If 'output' is not found, returns an empty string.
|