Update app/recs/generate.py
Browse files- app/recs/generate.py +1 -0
app/recs/generate.py
CHANGED
|
@@ -18,6 +18,7 @@ def sanitize_explanation(text: str, rec: Dict = None) -> str:
|
|
| 18 |
|
| 19 |
return cleaned
|
| 20 |
|
|
|
|
| 21 |
def generate_explanation(prompt: str, rec: Dict = None, stream: bool = False):
|
| 22 |
print("\n🔥 [generate_explanation] CALLED", flush=True)
|
| 23 |
|
|
|
|
| 18 |
|
| 19 |
return cleaned
|
| 20 |
|
| 21 |
+
@spaces.GPU(duration=120)
|
| 22 |
def generate_explanation(prompt: str, rec: Dict = None, stream: bool = False):
|
| 23 |
print("\n🔥 [generate_explanation] CALLED", flush=True)
|
| 24 |
|