oscarwang2 commited on
Commit
9825b5e
1 Parent(s): 59eab61

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -61,7 +61,7 @@ def generate_and_save_data():
61
  }
62
  ],
63
  temperature=1,
64
- max_tokens=8000,
65
  top_p=1,
66
  stream=True,
67
  stop=None,
@@ -111,7 +111,7 @@ def get_available_files():
111
  return [f for f in file_paths if os.path.isfile(f)]
112
 
113
  def update_file_list():
114
- return gr.Dropdown.update(choices=get_available_files())
115
 
116
  def update_token_count():
117
  return combined_tokens
 
61
  }
62
  ],
63
  temperature=1,
64
+ max_tokens=1024,
65
  top_p=1,
66
  stream=True,
67
  stop=None,
 
111
  return [f for f in file_paths if os.path.isfile(f)]
112
 
113
  def update_file_list():
114
+ return gr.update(choices=get_available_files())
115
 
116
  def update_token_count():
117
  return combined_tokens