Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -20,7 +20,7 @@ raven_pipeline = pipeline(
|
|
20 |
@spaces.GPU(enable_queue=True)
|
21 |
def process_text(input_text: str) -> str:
|
22 |
prompt = f"User Query: {input_text}<human_end>"
|
23 |
-
result = raven_pipeline(prompt, temperature=0.001, max_new_tokens=300, return_full_text=False, do_sample=
|
24 |
# torch.cuda.empty_cache()
|
25 |
return result
|
26 |
|
|
|
20 |
@spaces.GPU(enable_queue=True)
|
21 |
def process_text(input_text: str) -> str:
|
22 |
prompt = f"User Query: {input_text}<human_end>"
|
23 |
+
result = raven_pipeline(prompt, temperature=0.001, max_new_tokens=300, return_full_text=False, do_sample=True)[0]["generated_text"]#.replace("Call:", "").strip()
|
24 |
# torch.cuda.empty_cache()
|
25 |
return result
|
26 |
|