dh-mc commited on
Commit
640a737
·
1 Parent(s): 34ae60e

formatted code

Browse files
app.py CHANGED
@@ -39,6 +39,7 @@ def respond(
39
  response += token
40
  yield response
41
 
 
42
  """
43
  For information on how to customize the ChatInterface, peruse the gradio docs: https://www.gradio.app/docs/chatinterface
44
  """
@@ -60,4 +61,4 @@ demo = gr.ChatInterface(
60
 
61
 
62
  if __name__ == "__main__":
63
- demo.launch()
 
39
  response += token
40
  yield response
41
 
42
+
43
  """
44
  For information on how to customize the ChatInterface, peruse the gradio docs: https://www.gradio.app/docs/chatinterface
45
  """
 
61
 
62
 
63
  if __name__ == "__main__":
64
+ demo.launch()
llm_toolkit/translation_utils.py CHANGED
@@ -230,9 +230,9 @@ def get_metrics(df, max_output_tokens=2048):
230
  metrics_df["ews_score"] = ews_score
231
  metrics_df["repetition_score"] = repetition_score
232
  metrics_df["total_repetitions"] = total_repetitions
233
- metrics_df["num_entries_with_max_output_tokens"] = (
234
- num_entries_with_max_output_tokens
235
- )
236
 
237
  return metrics_df
238
 
 
230
  metrics_df["ews_score"] = ews_score
231
  metrics_df["repetition_score"] = repetition_score
232
  metrics_df["total_repetitions"] = total_repetitions
233
+ metrics_df[
234
+ "num_entries_with_max_output_tokens"
235
+ ] = num_entries_with_max_output_tokens
236
 
237
  return metrics_df
238
 
notebooks/00_Data Analysis.ipynb CHANGED
The diff for this file is too large to render. See raw diff
 
notebooks/00a_Data Analysis_greedy_decoding.ipynb CHANGED
The diff for this file is too large to render. See raw diff