Spaces:
Runtime error
Runtime error
vinayakj02
commited on
Commit
•
0aafcd5
1
Parent(s):
dc3ff8d
increase context length
Browse files
app.py
CHANGED
@@ -9,7 +9,7 @@ def generate_latex(code):
|
|
9 |
prompt= f"{code}\nGenerate Pseudocode from given code snippet using the latex packages algorithm and algpseudocode\nLatex Code : "
|
10 |
,temperature=0.5,
|
11 |
top_p=0.9,
|
12 |
-
max_tokens=
|
13 |
)
|
14 |
return "\\usepackage{algorithm}\n\\usepackage{algpseudocode}" + response['choices'][0]["text"]
|
15 |
|
|
|
9 |
prompt= f"{code}\nGenerate Pseudocode from given code snippet using the latex packages algorithm and algpseudocode\nLatex Code : "
|
10 |
,temperature=0.5,
|
11 |
top_p=0.9,
|
12 |
+
max_tokens=300,
|
13 |
)
|
14 |
return "\\usepackage{algorithm}\n\\usepackage{algpseudocode}" + response['choices'][0]["text"]
|
15 |
|