ceckenrode commited on
Commit
caae556
·
1 Parent(s): 1d6fdeb

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +0 -11
app.py CHANGED
@@ -199,17 +199,6 @@ with gr.Blocks(css = """#col_container {width: 1400px; margin-left: auto; margin
199
  deleteFile.click(delete_file, inputs=fileName, outputs=completedMessage)
200
  appendFile.click(append_file, inputs=[fileName, fileContent], outputs=completedMessage )
201
 
202
- def get_today_filename():
203
- from datetime import datetime
204
- date = datetime.now().strftime("%Y_%m_%d-%I.%M.%S.%p")
205
- #print(f"filename_{date}") 'filename_2023_01_12-03-29-22_AM'
206
- return f"MedNER_{date}.csv"
207
-
208
- def group_by_entity(raw):
209
- outputFile = get_base(get_today_filename())
210
- out = defaultdict(int)
211
-
212
-
213
  inputs.submit(predict, [inputs, top_p, temperature,chat_counter, chatbot, state], [chatbot, state, chat_counter])
214
  b1.click(predict, [inputs, top_p, temperature, chat_counter, chatbot, state], [chatbot, state, chat_counter])
215
  b1.click(reset_textbox, [], [inputs])
 
199
  deleteFile.click(delete_file, inputs=fileName, outputs=completedMessage)
200
  appendFile.click(append_file, inputs=[fileName, fileContent], outputs=completedMessage )
201
 
 
 
 
 
 
 
 
 
 
 
 
202
  inputs.submit(predict, [inputs, top_p, temperature,chat_counter, chatbot, state], [chatbot, state, chat_counter])
203
  b1.click(predict, [inputs, top_p, temperature, chat_counter, chatbot, state], [chatbot, state, chat_counter])
204
  b1.click(reset_textbox, [], [inputs])