Spaces:
Paused
Paused
Update app.py
Browse files
app.py
CHANGED
|
@@ -181,7 +181,7 @@ def gemini_reply(client, convo, n_followups):
|
|
| 181 |
cfg = types.GenerateContentConfig(
|
| 182 |
system_instruction=system_instruction() + extra,
|
| 183 |
temperature=0.7,
|
| 184 |
-
max_output_tokens=
|
| 185 |
)
|
| 186 |
resp = client.models.generate_content(model=MODEL, contents=contents, config=cfg)
|
| 187 |
return (resp.text or "").strip()
|
|
@@ -480,4 +480,4 @@ with gr.Blocks(title="P3 Myeloma Follow-up Chatbot", css=CSS,
|
|
| 480 |
)
|
| 481 |
|
| 482 |
if __name__ == "__main__":
|
| 483 |
-
demo.launch()
|
|
|
|
| 181 |
cfg = types.GenerateContentConfig(
|
| 182 |
system_instruction=system_instruction() + extra,
|
| 183 |
temperature=0.7,
|
| 184 |
+
max_output_tokens=2048,
|
| 185 |
)
|
| 186 |
resp = client.models.generate_content(model=MODEL, contents=contents, config=cfg)
|
| 187 |
return (resp.text or "").strip()
|
|
|
|
| 480 |
)
|
| 481 |
|
| 482 |
if __name__ == "__main__":
|
| 483 |
+
demo.launch()
|