Spaces:
Runtime error
Runtime error
style: rearange import staement above for readability
Browse files
app.py
CHANGED
@@ -1,20 +1,17 @@
|
|
1 |
import streamlit as st
|
2 |
import numpy as np
|
3 |
import pprint
|
4 |
-
|
5 |
|
|
|
6 |
from gtts import gTTS
|
7 |
from collections import Counter
|
8 |
from streamlit_chat import message
|
|
|
9 |
|
|
|
10 |
from bots.judgement_bot import debate_judgement
|
11 |
from bots.perfect_case_bot import perfect_case_selector
|
12 |
-
import time
|
13 |
-
from time import strftime
|
14 |
-
|
15 |
-
from audiorecorder import audiorecorder
|
16 |
-
|
17 |
-
# modules
|
18 |
from modules.db_modules import get_db, put_item, get_all_items, get_lastest_item
|
19 |
from modules.gpt_modules import gpt_call, gpt_call_context
|
20 |
from modules.whisper_modules import whisper_transcribe
|
@@ -30,7 +27,7 @@ dynamodb = get_db()
|
|
30 |
# Time Stamp
|
31 |
#########################################################
|
32 |
tm = time.localtime()
|
33 |
-
time_stamp = strftime('%Y-%m-%d %I:%M:%S %p', tm)
|
34 |
|
35 |
|
36 |
#########################################################
|
|
|
1 |
import streamlit as st
|
2 |
import numpy as np
|
3 |
import pprint
|
4 |
+
import time
|
5 |
|
6 |
+
from decimal import Decimal
|
7 |
from gtts import gTTS
|
8 |
from collections import Counter
|
9 |
from streamlit_chat import message
|
10 |
+
from audiorecorder import audiorecorder
|
11 |
|
12 |
+
# internal modules
|
13 |
from bots.judgement_bot import debate_judgement
|
14 |
from bots.perfect_case_bot import perfect_case_selector
|
|
|
|
|
|
|
|
|
|
|
|
|
15 |
from modules.db_modules import get_db, put_item, get_all_items, get_lastest_item
|
16 |
from modules.gpt_modules import gpt_call, gpt_call_context
|
17 |
from modules.whisper_modules import whisper_transcribe
|
|
|
27 |
# Time Stamp
|
28 |
#########################################################
|
29 |
tm = time.localtime()
|
30 |
+
time_stamp = time.strftime('%Y-%m-%d %I:%M:%S %p', tm)
|
31 |
|
32 |
|
33 |
#########################################################
|