Spaces:
Runtime error
Runtime error
Yash Sachdeva
commited on
Commit
·
0e9dcfb
1
Parent(s):
9a4543d
python syntax
Browse files- question_paper.py +2 -2
question_paper.py
CHANGED
@@ -23,9 +23,9 @@ def llama():
|
|
23 |
output = llm(
|
24 |
"Q: Name the planets in the solar system? A: ", # Prompt
|
25 |
max_tokens=32, # Generate up to 32 tokens, set to None to generate up to the end of the context window
|
26 |
-
stop=["Q:", "\n"], # Stop generating just before the model would generate a new question
|
27 |
echo=True # Echo the prompt back in the output
|
28 |
) # Generate a completion, can also call create_completion
|
29 |
|
30 |
-
print(output)
|
|
|
31 |
return {"output": output}
|
|
|
23 |
output = llm(
|
24 |
"Q: Name the planets in the solar system? A: ", # Prompt
|
25 |
max_tokens=32, # Generate up to 32 tokens, set to None to generate up to the end of the context window
|
|
|
26 |
echo=True # Echo the prompt back in the output
|
27 |
) # Generate a completion, can also call create_completion
|
28 |
|
29 |
+
print(output)
|
30 |
+
|
31 |
return {"output": output}
|