Spaces:
Running
on
Zero
Running
on
Zero
Update main.py
Browse files
main.py
CHANGED
@@ -78,6 +78,7 @@ def postprocess(response: str, bypass_from_preprocessing: str) -> str:
|
|
78 |
"""Applies a postprocessing step to the LLM's response before the user receives it"""
|
79 |
return response + bypass_from_preprocessing
|
80 |
|
|
|
81 |
def predict(message: str, history: list[str]) -> str:
|
82 |
"""This function is responsible for crafting a response"""
|
83 |
|
|
|
78 |
"""Applies a postprocessing step to the LLM's response before the user receives it"""
|
79 |
return response + bypass_from_preprocessing
|
80 |
|
81 |
+
@spaces.GPU
|
82 |
def predict(message: str, history: list[str]) -> str:
|
83 |
"""This function is responsible for crafting a response"""
|
84 |
|