Spaces:
Build error
Build error
Celine commited on
Commit ·
ef8cec0
1
Parent(s): f56d816
extend limit to 1048
Browse files
app.py
CHANGED
|
@@ -24,7 +24,7 @@ def promptGemma2(textprompt, max_tokens):
|
|
| 24 |
|
| 25 |
def aiChat(user_input, history):
|
| 26 |
prompt = "Answer the following prompt in a maximum of 3 short sentences: "+user_input
|
| 27 |
-
output = promptGemma2(prompt,
|
| 28 |
return output
|
| 29 |
|
| 30 |
demo = gr.ChatInterface(fn=aiChat, title="Model: google/gemma-2-9b-it", description="Your query will be responded to in 3 or less sentences. The max token length is set to 500.")
|
|
|
|
| 24 |
|
| 25 |
def aiChat(user_input, history):
|
| 26 |
prompt = "Answer the following prompt in a maximum of 3 short sentences: "+user_input
|
| 27 |
+
output = promptGemma2(prompt, 1048)
|
| 28 |
return output
|
| 29 |
|
| 30 |
demo = gr.ChatInterface(fn=aiChat, title="Model: google/gemma-2-9b-it", description="Your query will be responded to in 3 or less sentences. The max token length is set to 500.")
|