Rijgersberg commited on
Commit
615fd05
1 Parent(s): 4a2e0f3

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +6 -5
app.py CHANGED
@@ -19,7 +19,7 @@ if torch.cuda.is_available():
19
  tokenizer = AutoTokenizer.from_pretrained(model_id)
20
 
21
 
22
- @spaces.GPU
23
  def generate(
24
  message: str,
25
  chat_history: list[tuple[str, str]],
@@ -64,9 +64,10 @@ def generate(
64
  chat_interface = gr.ChatInterface(
65
  fn=generate,
66
  chatbot=gr.Chatbot(height=450,
67
- label="google/gemma-2-27b-it",
68
  show_share_button=True,
69
- avatar_images=(None, 'geitje-logo.jpg')),
 
70
  # textbox=gr.Textbox(value="Typ een bericht…"),
71
  cache_examples=False,
72
  additional_inputs=[
@@ -134,8 +135,8 @@ Twee van de wortelbedrijven werkten mee door meer informatie over de ongeoorloof
134
  ```
135
  Vat bovenstaand artikel samen"""]
136
  ],
137
- title="google/gemma-2-27b-it",
138
- description="""google/gemma-2-27b-it quick demo""",
139
  submit_btn="Genereer",
140
  stop_btn="Stop",
141
  retry_btn="🔄 Opnieuw",
 
19
  tokenizer = AutoTokenizer.from_pretrained(model_id)
20
 
21
 
22
+ @spaces.GPU(duration=4*60)
23
  def generate(
24
  message: str,
25
  chat_history: list[tuple[str, str]],
 
64
  chat_interface = gr.ChatInterface(
65
  fn=generate,
66
  chatbot=gr.Chatbot(height=450,
67
+ label="google/gemma-2-9b-it",
68
  show_share_button=True,
69
+ # avatar_images=(None, 'geitje-logo.jpg')
70
+ ),
71
  # textbox=gr.Textbox(value="Typ een bericht…"),
72
  cache_examples=False,
73
  additional_inputs=[
 
135
  ```
136
  Vat bovenstaand artikel samen"""]
137
  ],
138
+ title="google/gemma-2-9b-it",
139
+ description="""google/gemma-2-9b-it quick demo""",
140
  submit_btn="Genereer",
141
  stop_btn="Stop",
142
  retry_btn="🔄 Opnieuw",