Spaces:
Runtime error
Runtime error
adds pt dep
Browse files- app.py +1 -1
- requirements.txt +1 -0
app.py
CHANGED
@@ -13,4 +13,4 @@ def generate_solution(prompt, **kwargs):
|
|
13 |
output = model.generate(input_ids, pad_token_id=tokenizer.pad_token_id, *kwargs)
|
14 |
return tokenizer.decode(output[0][start:])
|
15 |
|
16 |
-
gr.Interface(generate_solution, inputs="text", outputs="text").launch()
|
|
|
13 |
output = model.generate(input_ids, pad_token_id=tokenizer.pad_token_id, *kwargs)
|
14 |
return tokenizer.decode(output[0][start:])
|
15 |
|
16 |
+
gr.Interface(generate_solution, inputs="text", outputs="text").launch()
|
requirements.txt
CHANGED
@@ -1 +1,2 @@
|
|
|
|
1 |
transformers
|
|
|
1 |
+
torch
|
2 |
transformers
|