Spaces:
Sleeping
Sleeping
oscarwang2
commited on
Commit
•
9825b5e
1
Parent(s):
59eab61
Update app.py
Browse files
app.py
CHANGED
@@ -61,7 +61,7 @@ def generate_and_save_data():
|
|
61 |
}
|
62 |
],
|
63 |
temperature=1,
|
64 |
-
max_tokens=
|
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.
|
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
|