a-guarino commited on
Commit
0dc1c29
·
1 Parent(s): bd73c72

Better message formatting

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -26,9 +26,9 @@ def look_up_tflite(repo_id):
26
  for tflite_path in tflite_files:
27
  tflite_file = os.path.basename(tflite_path)
28
  print(f"Found tflite file: {tflite_file}")
29
- tflite_message += f"\nRunning cycle estimate on {tflite_file}"
30
- return f"```\n{result.stdout}\n``` + {tflite_message} (This is an automated message)"
31
-
32
  def post_discussion_comment(repo_id, discussion_num, message):
33
  api.comment_discussion(
34
  repo_id=repo_id,
 
26
  for tflite_path in tflite_files:
27
  tflite_file = os.path.basename(tflite_path)
28
  print(f"Found tflite file: {tflite_file}")
29
+ tflite_message += f"Found tflite file {tflite_file} - Running cycle estimation\n"
30
+ return f"```\n{result.stdout}\n```\n{tflite_message}(This is an automated message)"
31
+
32
  def post_discussion_comment(repo_id, discussion_num, message):
33
  api.comment_discussion(
34
  repo_id=repo_id,