dhmeltzer commited on
Commit
15e28e5
1 Parent(s): 5ecef9f

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +0 -7
app.py CHANGED
@@ -26,11 +26,6 @@ def query(checkpoint, payload):
26
  user_input = st.text_area("Question Generator",
27
  """Black holes are the most gravitationally dense objects in the universe.""")
28
 
29
- # Filters
30
- st.sidebar.markdown("**Filters**")
31
-
32
- temperature = st.sidebar.slider("Temperature", 0.0, 100.0, 1.0, 1.0)
33
-
34
  if user_input:
35
  for checkpoint in checkpoints:
36
 
@@ -42,7 +37,6 @@ if user_input:
42
 
43
  output = query(checkpoint,{
44
  "inputs": prompt,
45
- "temperature":temperature,
46
  "wait_for_model":True})[0]['generated_text']
47
  else:
48
 
@@ -50,7 +44,6 @@ if user_input:
50
 
51
  output = query(checkpoint,{
52
  "inputs": prompt,
53
- "temperature":temperature,
54
  "wait_for_model":True})[0]['generated_text']
55
 
56
  st.write(f'Model {model_name}: {output}')
 
26
  user_input = st.text_area("Question Generator",
27
  """Black holes are the most gravitationally dense objects in the universe.""")
28
 
 
 
 
 
 
29
  if user_input:
30
  for checkpoint in checkpoints:
31
 
 
37
 
38
  output = query(checkpoint,{
39
  "inputs": prompt,
 
40
  "wait_for_model":True})[0]['generated_text']
41
  else:
42
 
 
44
 
45
  output = query(checkpoint,{
46
  "inputs": prompt,
 
47
  "wait_for_model":True})[0]['generated_text']
48
 
49
  st.write(f'Model {model_name}: {output}')