quocdat25 commited on
Commit
d155549
1 Parent(s): f9df79f

Upload folder using huggingface_hub

Browse files
.ipynb_checkpoints/chat_gradio-checkpoint.py CHANGED
@@ -23,7 +23,7 @@ def predict(message, history):
23
  crypto_crew = CryptoCrew(message)
24
  response = crypto_crew.run(logging=True)
25
  for i in range(len(response)):
26
- time.sleep(0.05)
27
  yield response[: i+1]
28
 
29
  # return response
 
23
  crypto_crew = CryptoCrew(message)
24
  response = crypto_crew.run(logging=True)
25
  for i in range(len(response)):
26
+ time.sleep(0.01)
27
  yield response[: i+1]
28
 
29
  # return response
.ipynb_checkpoints/crew-checkpoint.py CHANGED
@@ -40,7 +40,10 @@ class CryptoCrew:
40
  f = io.StringIO()
41
  with redirect_stdout(f):
42
  result = crew.kickoff()
43
- result = f.getvalue() + "## Here is the Report\n\n" + result
 
 
 
44
  else:
45
  result = crew.kickoff()
46
 
 
40
  f = io.StringIO()
41
  with redirect_stdout(f):
42
  result = crew.kickoff()
43
+
44
+ log = ''.join([str(char) for char in f.getvalue() if char in string.printable])
45
+
46
+ result = log + "## Here is the Report\n\n" + result
47
  else:
48
  result = crew.kickoff()
49
 
chat_gradio.py CHANGED
@@ -23,7 +23,7 @@ def predict(message, history):
23
  crypto_crew = CryptoCrew(message)
24
  response = crypto_crew.run(logging=True)
25
  for i in range(len(response)):
26
- time.sleep(0.05)
27
  yield response[: i+1]
28
 
29
  # return response
 
23
  crypto_crew = CryptoCrew(message)
24
  response = crypto_crew.run(logging=True)
25
  for i in range(len(response)):
26
+ time.sleep(0.01)
27
  yield response[: i+1]
28
 
29
  # return response
crew.py CHANGED
@@ -40,7 +40,10 @@ class CryptoCrew:
40
  f = io.StringIO()
41
  with redirect_stdout(f):
42
  result = crew.kickoff()
43
- result = f.getvalue() + "## Here is the Report\n\n" + result
 
 
 
44
  else:
45
  result = crew.kickoff()
46
 
 
40
  f = io.StringIO()
41
  with redirect_stdout(f):
42
  result = crew.kickoff()
43
+
44
+ log = ''.join([str(char) for char in f.getvalue() if char in string.printable])
45
+
46
+ result = log + "## Here is the Report\n\n" + result
47
  else:
48
  result = crew.kickoff()
49