Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -36,7 +36,7 @@ def biogpt(
|
|
36 |
):
|
37 |
|
38 |
en_prompt = translate_to_english(prompt, lang_model_id, base_lang)
|
39 |
-
generator = pipeline("text-generation", model=biogpt_model_id, device="
|
40 |
output = generator(en_prompt, max_length=max_length, num_return_sequences=num_return_sequences, do_sample=True)
|
41 |
output_dict = {}
|
42 |
for i in range(num_return_sequences):
|
|
|
36 |
):
|
37 |
|
38 |
en_prompt = translate_to_english(prompt, lang_model_id, base_lang)
|
39 |
+
generator = pipeline("text-generation", model=biogpt_model_id, device="cpu")
|
40 |
output = generator(en_prompt, max_length=max_length, num_return_sequences=num_return_sequences, do_sample=True)
|
41 |
output_dict = {}
|
42 |
for i in range(num_return_sequences):
|