Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -104,7 +104,7 @@ class GenerationConfig:
|
|
104 |
top_k: int = 50
|
105 |
top_p: float = 0.9
|
106 |
repetition_penalty: float = 1.0
|
107 |
-
max_new_tokens: int =
|
108 |
seed: int = 42
|
109 |
reset: bool = False
|
110 |
stream: bool = True
|
@@ -204,7 +204,7 @@ def predict_api(prompt):
|
|
204 |
top_k=10,
|
205 |
top_p=0.9,
|
206 |
repetition_penalty=1.0,
|
207 |
-
max_new_tokens=
|
208 |
seed=42,
|
209 |
reset=True, # reset history (cache)
|
210 |
stream=False,
|
@@ -257,7 +257,7 @@ with gr.Blocks(
|
|
257 |
gr.Markdown(
|
258 |
f"""<div style="text-align: center;">
|
259 |
<h5>Gradio </h5><br>
|
260 |
-
|
261 |
</div>""",
|
262 |
elem_classes="xsmall",
|
263 |
)
|
|
|
104 |
top_k: int = 50
|
105 |
top_p: float = 0.9
|
106 |
repetition_penalty: float = 1.0
|
107 |
+
max_new_tokens: int = 5000
|
108 |
seed: int = 42
|
109 |
reset: bool = False
|
110 |
stream: bool = True
|
|
|
204 |
top_k=10,
|
205 |
top_p=0.9,
|
206 |
repetition_penalty=1.0,
|
207 |
+
max_new_tokens=5000, # adjust as needed
|
208 |
seed=42,
|
209 |
reset=True, # reset history (cache)
|
210 |
stream=False,
|
|
|
257 |
gr.Markdown(
|
258 |
f"""<div style="text-align: center;">
|
259 |
<h5>Gradio </h5><br>
|
260 |
+
Utilize -- como favorecimento : Exemplo : "como reiniciar o serviço de de --DNS no Windows server 2019 64 bits" // e ao final de cada imput coloque ponto final // utilize dizima destribuitia // escreva sem erros de português .
|
261 |
</div>""",
|
262 |
elem_classes="xsmall",
|
263 |
)
|