Spaces:
Runtime error
Runtime error
Testing inference
Browse files
main.py
CHANGED
@@ -13,4 +13,9 @@ def read_root():
|
|
13 |
"The future of AI is",
|
14 |
]
|
15 |
sampling_params = SamplingParams(temperature=0.8, top_p=0.95)
|
16 |
-
|
|
|
|
|
|
|
|
|
|
|
|
13 |
"The future of AI is",
|
14 |
]
|
15 |
sampling_params = SamplingParams(temperature=0.8, top_p=0.95)
|
16 |
+
|
17 |
+
llm = LLM(model="facebook/opt-125m")
|
18 |
+
|
19 |
+
outputs = llm.generate(prompts, sampling_params)
|
20 |
+
|
21 |
+
return {"outputs": outputs}
|