dhmeltzer commited on
Commit
3d891e3
1 Parent(s): f288518

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +7 -1
app.py CHANGED
@@ -31,12 +31,18 @@ temperature = st.sidebar.slider("Temperature", 0.0, 1.0, 0.0,.1)
31
 
32
  if user_input:
33
  for checkpoint in checkpoints:
 
 
 
 
 
 
34
  output = query(checkpoint,{
35
  "inputs": user_input,
36
  "temperature":temperature,
37
  "wait_for_model":True})
38
 
39
- model_name = checkpoint.split('/')[1]
40
  st.write(f'Model {model_name}: {output}')
41
 
42
 
 
31
 
32
  if user_input:
33
  for checkpoint in checkpoints:
34
+
35
+ model_name = checkpoint.split('/')[1]
36
+
37
+ if 'flan' in model_name.lower():
38
+ user_input = 'generate a question: '+user_input
39
+
40
  output = query(checkpoint,{
41
  "inputs": user_input,
42
  "temperature":temperature,
43
  "wait_for_model":True})
44
 
45
+
46
  st.write(f'Model {model_name}: {output}')
47
 
48